package com.ourteam.education.dao;
import java.util.Arrays;
import java.util.List;
import java.util.Map;
import net.dao.BaseQueryBean;
import net.dao.BaseWhereCriterion;
import net.dao.IDataAccessInterface;
import org.apache.commons.lang.StringUtils;
/**
 * Template Name : DAO查询对象
 * Template Version : 1
 * Template Last Modfiy Date : Sat Aug 19 10:06:32 CST 2017
 * Auto Generate Date : 2019-09-22 15:15:08
  * Warning ! This file will be overwrite when regenerate !
  * 
 */
public class ClassDefineDAOQueryBean extends BaseQueryBean {
    
    public ClassDefineDAOQueryBean() {
		super();
    }
	
    public ClassDefineDAOQueryBean(BaseQueryBean aQueryBean) {
        super(aQueryBean);
    }
    
    public ClassDefineDAOQueryBean(BaseQueryBean aQueryBean,Map tableReplaceMap) {
        super(aQueryBean,tableReplaceMap);
    }
    
    public Criteria createCriteria() {
        
	    Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
                  oredCriteria.add(criteria);
            }
        return criteria;
     }
	
    protected Criteria createCriteriaInternal() {
	  return new Criteria(this);
    }
    
        
        
    	
		
	    
    public void addIdSelectProperty(){
		addIdSelectProperty("id");
	}
	
    public void addIdSelectProperty(String aAlias){
		if(StringUtils.isNotBlank(aAlias)){
			addSelectProperty(IClassDefineDAO.Id,aAlias);
		}
		else{
			addSelectProperty(IClassDefineDAO.Id,"id");
	    }
    }
    
       
		
		
	    
    public void addCampusIdSelectProperty(){
		addCampusIdSelectProperty("campusId");
	}
	
    public void addCampusIdSelectProperty(String aAlias){
		if(StringUtils.isNotBlank(aAlias)){
			addSelectProperty(IClassDefineDAO.CampusId,aAlias);
		}
		else{
			addSelectProperty(IClassDefineDAO.CampusId,"campusId");
	    }
    }
    
       
		
		
	    
    public void addCourseIdSelectProperty(){
		addCourseIdSelectProperty("courseId");
	}
	
    public void addCourseIdSelectProperty(String aAlias){
		if(StringUtils.isNotBlank(aAlias)){
			addSelectProperty(IClassDefineDAO.CourseId,aAlias);
		}
		else{
			addSelectProperty(IClassDefineDAO.CourseId,"courseId");
	    }
    }
    
       
		
		
	    
    public void addClassNameSelectProperty(){
		addClassNameSelectProperty("className");
	}
	
    public void addClassNameSelectProperty(String aAlias){
		if(StringUtils.isNotBlank(aAlias)){
			addSelectProperty(IClassDefineDAO.ClassName,aAlias);
		}
		else{
			addSelectProperty(IClassDefineDAO.ClassName,"className");
	    }
    }
    
       
		
		
	    
    public void addFullClassNumberSelectProperty(){
		addFullClassNumberSelectProperty("fullClassNumber");
	}
	
    public void addFullClassNumberSelectProperty(String aAlias){
		if(StringUtils.isNotBlank(aAlias)){
			addSelectProperty(IClassDefineDAO.FullClassNumber,aAlias);
		}
		else{
			addSelectProperty(IClassDefineDAO.FullClassNumber,"fullClassNumber");
	    }
    }
    
       
		
		
	    
    public void addMinClassNumberSelectProperty(){
		addMinClassNumberSelectProperty("minClassNumber");
	}
	
    public void addMinClassNumberSelectProperty(String aAlias){
		if(StringUtils.isNotBlank(aAlias)){
			addSelectProperty(IClassDefineDAO.MinClassNumber,aAlias);
		}
		else{
			addSelectProperty(IClassDefineDAO.MinClassNumber,"minClassNumber");
	    }
    }
    
       
		
		
	    
    public void addEnrollmentStatusSelectProperty(){
		addEnrollmentStatusSelectProperty("enrollmentStatus");
	}
	
    public void addEnrollmentStatusSelectProperty(String aAlias){
		if(StringUtils.isNotBlank(aAlias)){
			addSelectProperty(IClassDefineDAO.EnrollmentStatus,aAlias);
		}
		else{
			addSelectProperty(IClassDefineDAO.EnrollmentStatus,"enrollmentStatus");
	    }
    }
    
       
		
		
	    
    public void addClassRoomIdSelectProperty(){
		addClassRoomIdSelectProperty("classRoomId");
	}
	
    public void addClassRoomIdSelectProperty(String aAlias){
		if(StringUtils.isNotBlank(aAlias)){
			addSelectProperty(IClassDefineDAO.ClassRoomId,aAlias);
		}
		else{
			addSelectProperty(IClassDefineDAO.ClassRoomId,"classRoomId");
	    }
    }
    
       
		
		
	    
    public void addStartClassDateSelectProperty(){
		addStartClassDateSelectProperty("startClassDate");
	}
	
    public void addStartClassDateSelectProperty(String aAlias){
		if(StringUtils.isNotBlank(aAlias)){
			addSelectProperty(IClassDefineDAO.StartClassDate,aAlias);
		}
		else{
			addSelectProperty(IClassDefineDAO.StartClassDate,"startClassDate");
	    }
    }
    
       
		
		
	    
    public void addEndClassDateSelectProperty(){
		addEndClassDateSelectProperty("endClassDate");
	}
	
    public void addEndClassDateSelectProperty(String aAlias){
		if(StringUtils.isNotBlank(aAlias)){
			addSelectProperty(IClassDefineDAO.EndClassDate,aAlias);
		}
		else{
			addSelectProperty(IClassDefineDAO.EndClassDate,"endClassDate");
	    }
    }
    
       
		
		
	    
    public void addStudentClassHourSelectProperty(){
		addStudentClassHourSelectProperty("studentClassHour");
	}
	
    public void addStudentClassHourSelectProperty(String aAlias){
		if(StringUtils.isNotBlank(aAlias)){
			addSelectProperty(IClassDefineDAO.StudentClassHour,aAlias);
		}
		else{
			addSelectProperty(IClassDefineDAO.StudentClassHour,"studentClassHour");
	    }
    }
    
       
		
		
	    
    public void addTeacherClassHourSelectProperty(){
		addTeacherClassHourSelectProperty("teacherClassHour");
	}
	
    public void addTeacherClassHourSelectProperty(String aAlias){
		if(StringUtils.isNotBlank(aAlias)){
			addSelectProperty(IClassDefineDAO.TeacherClassHour,aAlias);
		}
		else{
			addSelectProperty(IClassDefineDAO.TeacherClassHour,"teacherClassHour");
	    }
    }
    
       
		
		
	    
    public void addDeleteFlagSelectProperty(){
		addDeleteFlagSelectProperty("deleteFlag");
	}
	
    public void addDeleteFlagSelectProperty(String aAlias){
		if(StringUtils.isNotBlank(aAlias)){
			addSelectProperty(IClassDefineDAO.DeleteFlag,aAlias);
		}
		else{
			addSelectProperty(IClassDefineDAO.DeleteFlag,"deleteFlag");
	    }
    }
    
       
		
		
	    
    public void addStatusSelectProperty(){
		addStatusSelectProperty("status");
	}
	
    public void addStatusSelectProperty(String aAlias){
		if(StringUtils.isNotBlank(aAlias)){
			addSelectProperty(IClassDefineDAO.Status,aAlias);
		}
		else{
			addSelectProperty(IClassDefineDAO.Status,"status");
	    }
    }
    
       
		
		
	    
    public void addRemarksSelectProperty(){
		addRemarksSelectProperty("remarks");
	}
	
    public void addRemarksSelectProperty(String aAlias){
		if(StringUtils.isNotBlank(aAlias)){
			addSelectProperty(IClassDefineDAO.Remarks,aAlias);
		}
		else{
			addSelectProperty(IClassDefineDAO.Remarks,"remarks");
	    }
    }
    
       
		
						
	    
    public void addCampusNameSelectProperty(){
		addCampusNameSelectProperty("campusName");
	}
	
    public void addCampusNameSelectProperty(String aAlias){
		if(StringUtils.isNotBlank(aAlias)){
			addSelectProperty(IClassDefineDAO.CampusName,aAlias);
		}
		else{
			addSelectProperty(IClassDefineDAO.CampusName,"campusName");
	    }
    }
    
    	
								
	    
    public void addCourseNameSelectProperty(){
		addCourseNameSelectProperty("courseName");
	}
	
    public void addCourseNameSelectProperty(String aAlias){
		if(StringUtils.isNotBlank(aAlias)){
			addSelectProperty(IClassDefineDAO.CourseName,aAlias);
		}
		else{
			addSelectProperty(IClassDefineDAO.CourseName,"courseName");
	    }
    }
    
    	
								
	    
    public void addClassroomNameSelectProperty(){
		addClassroomNameSelectProperty("classroomName");
	}
	
    public void addClassroomNameSelectProperty(String aAlias){
		if(StringUtils.isNotBlank(aAlias)){
			addSelectProperty(IClassDefineDAO.ClassroomName,aAlias);
		}
		else{
			addSelectProperty(IClassDefineDAO.ClassroomName,"classroomName");
	    }
    }
    
    	
				
	public void addAllSelectProperties(){
		
		
	    addIdSelectProperty();
   
		
		
	    addCampusIdSelectProperty();
   
		
		
	    addCourseIdSelectProperty();
   
		
		
	    addClassNameSelectProperty();
   
		
		
	    addFullClassNumberSelectProperty();
   
		
		
	    addMinClassNumberSelectProperty();
   
		
		
	    addEnrollmentStatusSelectProperty();
   
		
		
	    addClassRoomIdSelectProperty();
   
		
		
	    addStartClassDateSelectProperty();
   
		
		
	    addEndClassDateSelectProperty();
   
		
		
	    addStudentClassHourSelectProperty();
   
		
		
	    addTeacherClassHourSelectProperty();
   
		
		
	    addDeleteFlagSelectProperty();
   
		
		
	    addStatusSelectProperty();
   
		
		
	    addRemarksSelectProperty();
   
		
						
    	addCampusNameSelectProperty();
	
								
    	addCourseNameSelectProperty();
	
								
    	addClassroomNameSelectProperty();
	
			    }
    
    public static class Criteria extends BaseWhereCriterion<ClassDefineDAOQueryBean> {
	
        protected Criteria(ClassDefineDAOQueryBean aParentObject) {
		    super(aParentObject);
        }
        
                  
            	
    	    	
    	        
                
        public Criteria andIdIsNull() {
            addCriterion(IClassDefineDAO.Id + " is null");
            return this;
        }
        public Criteria andIdIsNotNull() {
            addCriterion(IClassDefineDAO.Id + " is not null");
            return this;
        }
    
        public Criteria andIdIsNotEmpty() {        
            addCriterion(IClassDefineDAO.Id + " is not null AND " + IClassDefineDAO.Id + " <> ''");
            return this;
        }
    		
    	public Criteria andIdIsEmpty() {       
            addCriterion("(" + IClassDefineDAO.Id + " is null OR " + IClassDefineDAO.Id + " = '')");
            return this;
        }
        
                
                        
                        
                                
        public Criteria andIdEqualTo(long value) {
        	return andIdEqualTo(Long.valueOf(value));
        }
               public Criteria andIdEqualTo(java.lang.Long value) {
        				
            addCriterion(IClassDefineDAO.Id + " = ", value, "id");
            return this;
        }
        
        public Criteria andIdEqualToForeignKey(java.lang.String key) {
	    StringBuffer str = new StringBuffer(IClassDefineDAO.Id);
	    str.append(" = ").append(key);
            addForeignKeyCriterion(str.toString());
            return this;
        }
		
		public Criteria andIdEqualTo(BaseQueryBean subQueryBean,
				IDataAccessInterface<?, ?> dao) {
			addCriterion(IClassDefineDAO.Id + " = ", subQueryBean, dao);
			return this;
		}
                
        public Criteria andIdNotEqualTo(long value) {
        	return andIdNotEqualTo(Long.valueOf(value));
        }
                public Criteria andIdNotEqualTo(java.lang.Long value) {
        	        
            addCriterion(IClassDefineDAO.Id + " <>", value, "id");
            return this;
        }
               
        public Criteria andIdNotEqualToOrIsNull(long value) {
        	return andIdNotEqualToOrIsNull(Long.valueOf(value));
        }
                
        public Criteria andIdNotEqualToOrIsNull(java.lang.Long value) {
        	        
            addCriterion(IClassDefineDAO.Id + " is null OR " + IClassDefineDAO.Id + " <>", value, "id");
            return this;
        }
        
        public Criteria andIdNotEqualToForeignKey(java.lang.String key) {
	    StringBuffer str = new StringBuffer(IClassDefineDAO.Id);
	    str.append(" <> ").append(key);
            addForeignKeyCriterion(str.toString());
            return this;
        }
		
		public Criteria andIdNotEqualTo(BaseQueryBean subQueryBean,
				IDataAccessInterface<?, ?> dao) {
			addCriterion(IClassDefineDAO.Id + " <> ", subQueryBean, dao);
			return this;
		}
               
        public Criteria andIdGreaterThan(long value) {
        	return andIdGreaterThan(Long.valueOf(value));
        }
                public Criteria andIdGreaterThan(java.lang.Long value) {
        				
            addCriterion(IClassDefineDAO.Id + " >", value, "id");
            return this;
        }
        
        public Criteria andIdGreaterThanForeignKey(java.lang.String key) {
	    StringBuffer str = new StringBuffer(IClassDefineDAO.Id);
	    str.append(" > ").append(key);
            addForeignKeyCriterion(str.toString());
            return this;
        }
		
		public Criteria andIdGreaterThan(BaseQueryBean subQueryBean,
				IDataAccessInterface<?, ?> dao) {
			addCriterion(IClassDefineDAO.Id + " > ", subQueryBean, dao);
			return this;
		}
               
        public Criteria andIdGreaterThanOrEqualTo(long value) {
        	return andIdGreaterThanOrEqualTo(Long.valueOf(value));
        }
                public Criteria andIdGreaterThanOrEqualTo(java.lang.Long value) {
        				
            addCriterion(IClassDefineDAO.Id + " >=", value, "id");
            return this;
        }
        
        public Criteria andIdGreaterThanOrEqualToForeignKey(java.lang.String key) {
			StringBuffer str = new StringBuffer(IClassDefineDAO.Id);
			str.append(" >= ").append(key);
            addForeignKeyCriterion(str.toString());
            return this;
        }
		
		public Criteria andIdGreaterThanOrEqualTo(BaseQueryBean subQueryBean,
				IDataAccessInterface<?, ?> dao) {
			addCriterion(IClassDefineDAO.Id + " >= ", subQueryBean, dao);
			return this;
		}
        
                
        public Criteria andIdLessThan(long value) {
        	return andIdLessThan(Long.valueOf(value));
        }
                public Criteria andIdLessThan(java.lang.Long value) {
        				
            addCriterion(IClassDefineDAO.Id + " <", value, "id");
            return this;
        }
        
        public Criteria andIdLessThanForeignKey(java.lang.String key) {
			StringBuffer str = new StringBuffer(IClassDefineDAO.Id);
			str.append(" < ").append(key);
            addForeignKeyCriterion(str.toString());
            return this;
        }
		
		public Criteria andIdLessThan(BaseQueryBean subQueryBean,
				IDataAccessInterface<?, ?> dao) {
			addCriterion(IClassDefineDAO.Id + " < ", subQueryBean, dao);
			return this;
		}
        
                
        public Criteria andIdLessThanOrEqualTo(long value) {
        	return andIdLessThanOrEqualTo(Long.valueOf(value));
        }
                public Criteria andIdLessThanOrEqualTo(java.lang.Long value) {
        				
            addCriterion(IClassDefineDAO.Id + " <=", value, "id");
            return this;
        }
        
        public Criteria andIdLessThanOrEqualToForeignKey(java.lang.String key) {
			StringBuffer str = new StringBuffer(IClassDefineDAO.Id);
			str.append(" <= ").append(key);
            addForeignKeyCriterion(str.toString());
            return this;
        }
		
		public Criteria andIdLessThanOrEqualTo(BaseQueryBean subQueryBean,
				IDataAccessInterface<?, ?> dao) {
			addCriterion(IClassDefineDAO.Id + " <= ", subQueryBean, dao);
			return this;
		}
		
		        
                
        public Criteria andIdIn(long[] values) {
        	if(values.length == 1){
        		return andIdEqualTo((java.lang.Long)values[0]);
        	}
        	else{
            	addCriterion(IClassDefineDAO.Id + " in", values, "id");
            	return this;
            }
        }
        
        public Criteria andIdNotIn(long[] values) {
        	if(values.length == 1){
        		return andIdNotEqualTo((java.lang.Long)values[0]);
        	}
        	else{
            	addCriterion(IClassDefineDAO.Id + " not in", values, "id");
            	return this;
            }
        }
        
                public Criteria andIdIn(List<java.lang.Long> values) {
        	
        	if(values.size() == 1){
        		return andIdEqualTo(values.get(0));
        	}
        	else{
            	addCriterion(IClassDefineDAO.Id + " in", values, "id");
            	return this;
            }
        }
        public Criteria andIdNotIn(List<java.lang.Long> values) {
        	if(values.size() == 1){
        		return andIdNotEqualTo(values.get(0));
        	}
        	else{
            	addCriterion(IClassDefineDAO.Id + " not in", values, "id");
            	return this;
            }
        }
        
        public Criteria andIdIn(java.lang.Long[] values) {
        	
        	if(values.length == 1){
        		return andIdEqualTo(values[0]);
        	}
        	else{
            	addCriterion(IClassDefineDAO.Id + " in", Arrays.asList(values), "id");
            	return this;
            }
        }
        public Criteria andIdNotIn(java.lang.Long[] values) {
        	if(values.length == 1){
        		return andIdNotEqualTo(values[0]);
        	}
        	else{
            	addCriterion(IClassDefineDAO.Id + " not in", Arrays.asList(values), "id");
            	return this;
            }
        }
		
		public Criteria andIdIn(BaseQueryBean subQueryBean,
				IDataAccessInterface<?, ?> dao) {
			addCriterion(IClassDefineDAO.Id + " in ", subQueryBean, dao);
			return this;
		}
		
		public Criteria andIdNotIn(BaseQueryBean subQueryBean,
				IDataAccessInterface<?, ?> dao) {
			addCriterion(IClassDefineDAO.Id + " not in ", subQueryBean, dao);
			return this;
		}
        
                
        public Criteria andIdBetween(long value1,long value2) {
        	addCriterion(IClassDefineDAO.Id + " between", value1, value2, "id");
            return this;
        }
                public Criteria andIdBetween(java.lang.Long value1, java.lang.Long value2) {
            addCriterion(IClassDefineDAO.Id + " between", value1, value2, "id");
            return this;
        }
        
                
        public Criteria andIdNotBetween(long value1,long value2) {
        	addCriterion(IClassDefineDAO.Id + " not between", value1, value2, "id");
            return this;
        }
                public Criteria andIdNotBetween(java.lang.Long value1, java.lang.Long value2) {
            addCriterion(IClassDefineDAO.Id + " not between", value1, value2, "id");
            return this;
        }
        
            	
    	    	
    	    	
    	        
                
        public Criteria andCampusIdIsNull() {
            addCriterion(IClassDefineDAO.CampusId + " is null");
            return this;
        }
        public Criteria andCampusIdIsNotNull() {
            addCriterion(IClassDefineDAO.CampusId + " is not null");
            return this;
        }
    
        public Criteria andCampusIdIsNotEmpty() {        
            addCriterion(IClassDefineDAO.CampusId + " is not null AND " + IClassDefineDAO.CampusId + " <> ''");
            return this;
        }
    		
    	public Criteria andCampusIdIsEmpty() {       
            addCriterion("(" + IClassDefineDAO.CampusId + " is null OR " + IClassDefineDAO.CampusId + " = '')");
            return this;
        }
        
                
                        
                        
                                
        public Criteria andCampusIdEqualTo(long value) {
        	return andCampusIdEqualTo(Long.valueOf(value));
        }
               public Criteria andCampusIdEqualTo(java.lang.Long value) {
        				
            addCriterion(IClassDefineDAO.CampusId + " = ", value, "campusId");
            return this;
        }
        
        public Criteria andCampusIdEqualToForeignKey(java.lang.String key) {
	    StringBuffer str = new StringBuffer(IClassDefineDAO.CampusId);
	    str.append(" = ").append(key);
            addForeignKeyCriterion(str.toString());
            return this;
        }
		
		public Criteria andCampusIdEqualTo(BaseQueryBean subQueryBean,
				IDataAccessInterface<?, ?> dao) {
			addCriterion(IClassDefineDAO.CampusId + " = ", subQueryBean, dao);
			return this;
		}
                
        public Criteria andCampusIdNotEqualTo(long value) {
        	return andCampusIdNotEqualTo(Long.valueOf(value));
        }
                public Criteria andCampusIdNotEqualTo(java.lang.Long value) {
        	        
            addCriterion(IClassDefineDAO.CampusId + " <>", value, "campusId");
            return this;
        }
               
        public Criteria andCampusIdNotEqualToOrIsNull(long value) {
        	return andCampusIdNotEqualToOrIsNull(Long.valueOf(value));
        }
                
        public Criteria andCampusIdNotEqualToOrIsNull(java.lang.Long value) {
        	        
            addCriterion(IClassDefineDAO.CampusId + " is null OR " + IClassDefineDAO.CampusId + " <>", value, "campusId");
            return this;
        }
        
        public Criteria andCampusIdNotEqualToForeignKey(java.lang.String key) {
	    StringBuffer str = new StringBuffer(IClassDefineDAO.CampusId);
	    str.append(" <> ").append(key);
            addForeignKeyCriterion(str.toString());
            return this;
        }
		
		public Criteria andCampusIdNotEqualTo(BaseQueryBean subQueryBean,
				IDataAccessInterface<?, ?> dao) {
			addCriterion(IClassDefineDAO.CampusId + " <> ", subQueryBean, dao);
			return this;
		}
               
        public Criteria andCampusIdGreaterThan(long value) {
        	return andCampusIdGreaterThan(Long.valueOf(value));
        }
                public Criteria andCampusIdGreaterThan(java.lang.Long value) {
        				
            addCriterion(IClassDefineDAO.CampusId + " >", value, "campusId");
            return this;
        }
        
        public Criteria andCampusIdGreaterThanForeignKey(java.lang.String key) {
	    StringBuffer str = new StringBuffer(IClassDefineDAO.CampusId);
	    str.append(" > ").append(key);
            addForeignKeyCriterion(str.toString());
            return this;
        }
		
		public Criteria andCampusIdGreaterThan(BaseQueryBean subQueryBean,
				IDataAccessInterface<?, ?> dao) {
			addCriterion(IClassDefineDAO.CampusId + " > ", subQueryBean, dao);
			return this;
		}
               
        public Criteria andCampusIdGreaterThanOrEqualTo(long value) {
        	return andCampusIdGreaterThanOrEqualTo(Long.valueOf(value));
        }
                public Criteria andCampusIdGreaterThanOrEqualTo(java.lang.Long value) {
        				
            addCriterion(IClassDefineDAO.CampusId + " >=", value, "campusId");
            return this;
        }
        
        public Criteria andCampusIdGreaterThanOrEqualToForeignKey(java.lang.String key) {
			StringBuffer str = new StringBuffer(IClassDefineDAO.CampusId);
			str.append(" >= ").append(key);
            addForeignKeyCriterion(str.toString());
            return this;
        }
		
		public Criteria andCampusIdGreaterThanOrEqualTo(BaseQueryBean subQueryBean,
				IDataAccessInterface<?, ?> dao) {
			addCriterion(IClassDefineDAO.CampusId + " >= ", subQueryBean, dao);
			return this;
		}
        
                
        public Criteria andCampusIdLessThan(long value) {
        	return andCampusIdLessThan(Long.valueOf(value));
        }
                public Criteria andCampusIdLessThan(java.lang.Long value) {
        				
            addCriterion(IClassDefineDAO.CampusId + " <", value, "campusId");
            return this;
        }
        
        public Criteria andCampusIdLessThanForeignKey(java.lang.String key) {
			StringBuffer str = new StringBuffer(IClassDefineDAO.CampusId);
			str.append(" < ").append(key);
            addForeignKeyCriterion(str.toString());
            return this;
        }
		
		public Criteria andCampusIdLessThan(BaseQueryBean subQueryBean,
				IDataAccessInterface<?, ?> dao) {
			addCriterion(IClassDefineDAO.CampusId + " < ", subQueryBean, dao);
			return this;
		}
        
                
        public Criteria andCampusIdLessThanOrEqualTo(long value) {
        	return andCampusIdLessThanOrEqualTo(Long.valueOf(value));
        }
                public Criteria andCampusIdLessThanOrEqualTo(java.lang.Long value) {
        				
            addCriterion(IClassDefineDAO.CampusId + " <=", value, "campusId");
            return this;
        }
        
        public Criteria andCampusIdLessThanOrEqualToForeignKey(java.lang.String key) {
			StringBuffer str = new StringBuffer(IClassDefineDAO.CampusId);
			str.append(" <= ").append(key);
            addForeignKeyCriterion(str.toString());
            return this;
        }
		
		public Criteria andCampusIdLessThanOrEqualTo(BaseQueryBean subQueryBean,
				IDataAccessInterface<?, ?> dao) {
			addCriterion(IClassDefineDAO.CampusId + " <= ", subQueryBean, dao);
			return this;
		}
		
		        
                
        public Criteria andCampusIdIn(long[] values) {
        	if(values.length == 1){
        		return andCampusIdEqualTo((java.lang.Long)values[0]);
        	}
        	else{
            	addCriterion(IClassDefineDAO.CampusId + " in", values, "campusId");
            	return this;
            }
        }
        
        public Criteria andCampusIdNotIn(long[] values) {
        	if(values.length == 1){
        		return andCampusIdNotEqualTo((java.lang.Long)values[0]);
        	}
        	else{
            	addCriterion(IClassDefineDAO.CampusId + " not in", values, "campusId");
            	return this;
            }
        }
        
                public Criteria andCampusIdIn(List<java.lang.Long> values) {
        	
        	if(values.size() == 1){
        		return andCampusIdEqualTo(values.get(0));
        	}
        	else{
            	addCriterion(IClassDefineDAO.CampusId + " in", values, "campusId");
            	return this;
            }
        }
        public Criteria andCampusIdNotIn(List<java.lang.Long> values) {
        	if(values.size() == 1){
        		return andCampusIdNotEqualTo(values.get(0));
        	}
        	else{
            	addCriterion(IClassDefineDAO.CampusId + " not in", values, "campusId");
            	return this;
            }
        }
        
        public Criteria andCampusIdIn(java.lang.Long[] values) {
        	
        	if(values.length == 1){
        		return andCampusIdEqualTo(values[0]);
        	}
        	else{
            	addCriterion(IClassDefineDAO.CampusId + " in", Arrays.asList(values), "campusId");
            	return this;
            }
        }
        public Criteria andCampusIdNotIn(java.lang.Long[] values) {
        	if(values.length == 1){
        		return andCampusIdNotEqualTo(values[0]);
        	}
        	else{
            	addCriterion(IClassDefineDAO.CampusId + " not in", Arrays.asList(values), "campusId");
            	return this;
            }
        }
		
		public Criteria andCampusIdIn(BaseQueryBean subQueryBean,
				IDataAccessInterface<?, ?> dao) {
			addCriterion(IClassDefineDAO.CampusId + " in ", subQueryBean, dao);
			return this;
		}
		
		public Criteria andCampusIdNotIn(BaseQueryBean subQueryBean,
				IDataAccessInterface<?, ?> dao) {
			addCriterion(IClassDefineDAO.CampusId + " not in ", subQueryBean, dao);
			return this;
		}
        
                
        public Criteria andCampusIdBetween(long value1,long value2) {
        	addCriterion(IClassDefineDAO.CampusId + " between", value1, value2, "campusId");
            return this;
        }
                public Criteria andCampusIdBetween(java.lang.Long value1, java.lang.Long value2) {
            addCriterion(IClassDefineDAO.CampusId + " between", value1, value2, "campusId");
            return this;
        }
        
                
        public Criteria andCampusIdNotBetween(long value1,long value2) {
        	addCriterion(IClassDefineDAO.CampusId + " not between", value1, value2, "campusId");
            return this;
        }
                public Criteria andCampusIdNotBetween(java.lang.Long value1, java.lang.Long value2) {
            addCriterion(IClassDefineDAO.CampusId + " not between", value1, value2, "campusId");
            return this;
        }
        
            	
    	    	
    	    	
    	        
                
        public Criteria andCourseIdIsNull() {
            addCriterion(IClassDefineDAO.CourseId + " is null");
            return this;
        }
        public Criteria andCourseIdIsNotNull() {
            addCriterion(IClassDefineDAO.CourseId + " is not null");
            return this;
        }
    
        public Criteria andCourseIdIsNotEmpty() {        
            addCriterion(IClassDefineDAO.CourseId + " is not null AND " + IClassDefineDAO.CourseId + " <> ''");
            return this;
        }
    		
    	public Criteria andCourseIdIsEmpty() {       
            addCriterion("(" + IClassDefineDAO.CourseId + " is null OR " + IClassDefineDAO.CourseId + " = '')");
            return this;
        }
        
                
                        
                        
                                
        public Criteria andCourseIdEqualTo(long value) {
        	return andCourseIdEqualTo(Long.valueOf(value));
        }
               public Criteria andCourseIdEqualTo(java.lang.Long value) {
        				
            addCriterion(IClassDefineDAO.CourseId + " = ", value, "courseId");
            return this;
        }
        
        public Criteria andCourseIdEqualToForeignKey(java.lang.String key) {
	    StringBuffer str = new StringBuffer(IClassDefineDAO.CourseId);
	    str.append(" = ").append(key);
            addForeignKeyCriterion(str.toString());
            return this;
        }
		
		public Criteria andCourseIdEqualTo(BaseQueryBean subQueryBean,
				IDataAccessInterface<?, ?> dao) {
			addCriterion(IClassDefineDAO.CourseId + " = ", subQueryBean, dao);
			return this;
		}
                
        public Criteria andCourseIdNotEqualTo(long value) {
        	return andCourseIdNotEqualTo(Long.valueOf(value));
        }
                public Criteria andCourseIdNotEqualTo(java.lang.Long value) {
        	        
            addCriterion(IClassDefineDAO.CourseId + " <>", value, "courseId");
            return this;
        }
               
        public Criteria andCourseIdNotEqualToOrIsNull(long value) {
        	return andCourseIdNotEqualToOrIsNull(Long.valueOf(value));
        }
                
        public Criteria andCourseIdNotEqualToOrIsNull(java.lang.Long value) {
        	        
            addCriterion(IClassDefineDAO.CourseId + " is null OR " + IClassDefineDAO.CourseId + " <>", value, "courseId");
            return this;
        }
        
        public Criteria andCourseIdNotEqualToForeignKey(java.lang.String key) {
	    StringBuffer str = new StringBuffer(IClassDefineDAO.CourseId);
	    str.append(" <> ").append(key);
            addForeignKeyCriterion(str.toString());
            return this;
        }
		
		public Criteria andCourseIdNotEqualTo(BaseQueryBean subQueryBean,
				IDataAccessInterface<?, ?> dao) {
			addCriterion(IClassDefineDAO.CourseId + " <> ", subQueryBean, dao);
			return this;
		}
               
        public Criteria andCourseIdGreaterThan(long value) {
        	return andCourseIdGreaterThan(Long.valueOf(value));
        }
                public Criteria andCourseIdGreaterThan(java.lang.Long value) {
        				
            addCriterion(IClassDefineDAO.CourseId + " >", value, "courseId");
            return this;
        }
        
        public Criteria andCourseIdGreaterThanForeignKey(java.lang.String key) {
	    StringBuffer str = new StringBuffer(IClassDefineDAO.CourseId);
	    str.append(" > ").append(key);
            addForeignKeyCriterion(str.toString());
            return this;
        }
		
		public Criteria andCourseIdGreaterThan(BaseQueryBean subQueryBean,
				IDataAccessInterface<?, ?> dao) {
			addCriterion(IClassDefineDAO.CourseId + " > ", subQueryBean, dao);
			return this;
		}
               
        public Criteria andCourseIdGreaterThanOrEqualTo(long value) {
        	return andCourseIdGreaterThanOrEqualTo(Long.valueOf(value));
        }
                public Criteria andCourseIdGreaterThanOrEqualTo(java.lang.Long value) {
        				
            addCriterion(IClassDefineDAO.CourseId + " >=", value, "courseId");
            return this;
        }
        
        public Criteria andCourseIdGreaterThanOrEqualToForeignKey(java.lang.String key) {
			StringBuffer str = new StringBuffer(IClassDefineDAO.CourseId);
			str.append(" >= ").append(key);
            addForeignKeyCriterion(str.toString());
            return this;
        }
		
		public Criteria andCourseIdGreaterThanOrEqualTo(BaseQueryBean subQueryBean,
				IDataAccessInterface<?, ?> dao) {
			addCriterion(IClassDefineDAO.CourseId + " >= ", subQueryBean, dao);
			return this;
		}
        
                
        public Criteria andCourseIdLessThan(long value) {
        	return andCourseIdLessThan(Long.valueOf(value));
        }
                public Criteria andCourseIdLessThan(java.lang.Long value) {
        				
            addCriterion(IClassDefineDAO.CourseId + " <", value, "courseId");
            return this;
        }
        
        public Criteria andCourseIdLessThanForeignKey(java.lang.String key) {
			StringBuffer str = new StringBuffer(IClassDefineDAO.CourseId);
			str.append(" < ").append(key);
            addForeignKeyCriterion(str.toString());
            return this;
        }
		
		public Criteria andCourseIdLessThan(BaseQueryBean subQueryBean,
				IDataAccessInterface<?, ?> dao) {
			addCriterion(IClassDefineDAO.CourseId + " < ", subQueryBean, dao);
			return this;
		}
        
                
        public Criteria andCourseIdLessThanOrEqualTo(long value) {
        	return andCourseIdLessThanOrEqualTo(Long.valueOf(value));
        }
                public Criteria andCourseIdLessThanOrEqualTo(java.lang.Long value) {
        				
            addCriterion(IClassDefineDAO.CourseId + " <=", value, "courseId");
            return this;
        }
        
        public Criteria andCourseIdLessThanOrEqualToForeignKey(java.lang.String key) {
			StringBuffer str = new StringBuffer(IClassDefineDAO.CourseId);
			str.append(" <= ").append(key);
            addForeignKeyCriterion(str.toString());
            return this;
        }
		
		public Criteria andCourseIdLessThanOrEqualTo(BaseQueryBean subQueryBean,
				IDataAccessInterface<?, ?> dao) {
			addCriterion(IClassDefineDAO.CourseId + " <= ", subQueryBean, dao);
			return this;
		}
		
		        
                
        public Criteria andCourseIdIn(long[] values) {
        	if(values.length == 1){
        		return andCourseIdEqualTo((java.lang.Long)values[0]);
        	}
        	else{
            	addCriterion(IClassDefineDAO.CourseId + " in", values, "courseId");
            	return this;
            }
        }
        
        public Criteria andCourseIdNotIn(long[] values) {
        	if(values.length == 1){
        		return andCourseIdNotEqualTo((java.lang.Long)values[0]);
        	}
        	else{
            	addCriterion(IClassDefineDAO.CourseId + " not in", values, "courseId");
            	return this;
            }
        }
        
                public Criteria andCourseIdIn(List<java.lang.Long> values) {
        	
        	if(values.size() == 1){
        		return andCourseIdEqualTo(values.get(0));
        	}
        	else{
            	addCriterion(IClassDefineDAO.CourseId + " in", values, "courseId");
            	return this;
            }
        }
        public Criteria andCourseIdNotIn(List<java.lang.Long> values) {
        	if(values.size() == 1){
        		return andCourseIdNotEqualTo(values.get(0));
        	}
        	else{
            	addCriterion(IClassDefineDAO.CourseId + " not in", values, "courseId");
            	return this;
            }
        }
        
        public Criteria andCourseIdIn(java.lang.Long[] values) {
        	
        	if(values.length == 1){
        		return andCourseIdEqualTo(values[0]);
        	}
        	else{
            	addCriterion(IClassDefineDAO.CourseId + " in", Arrays.asList(values), "courseId");
            	return this;
            }
        }
        public Criteria andCourseIdNotIn(java.lang.Long[] values) {
        	if(values.length == 1){
        		return andCourseIdNotEqualTo(values[0]);
        	}
        	else{
            	addCriterion(IClassDefineDAO.CourseId + " not in", Arrays.asList(values), "courseId");
            	return this;
            }
        }
		
		public Criteria andCourseIdIn(BaseQueryBean subQueryBean,
				IDataAccessInterface<?, ?> dao) {
			addCriterion(IClassDefineDAO.CourseId + " in ", subQueryBean, dao);
			return this;
		}
		
		public Criteria andCourseIdNotIn(BaseQueryBean subQueryBean,
				IDataAccessInterface<?, ?> dao) {
			addCriterion(IClassDefineDAO.CourseId + " not in ", subQueryBean, dao);
			return this;
		}
        
                
        public Criteria andCourseIdBetween(long value1,long value2) {
        	addCriterion(IClassDefineDAO.CourseId + " between", value1, value2, "courseId");
            return this;
        }
                public Criteria andCourseIdBetween(java.lang.Long value1, java.lang.Long value2) {
            addCriterion(IClassDefineDAO.CourseId + " between", value1, value2, "courseId");
            return this;
        }
        
                
        public Criteria andCourseIdNotBetween(long value1,long value2) {
        	addCriterion(IClassDefineDAO.CourseId + " not between", value1, value2, "courseId");
            return this;
        }
                public Criteria andCourseIdNotBetween(java.lang.Long value1, java.lang.Long value2) {
            addCriterion(IClassDefineDAO.CourseId + " not between", value1, value2, "courseId");
            return this;
        }
        
            	
    	    	
    	    	
    	        
                
        public Criteria andClassNameIsNull() {
            addCriterion(IClassDefineDAO.ClassName + " is null");
            return this;
        }
        public Criteria andClassNameIsNotNull() {
            addCriterion(IClassDefineDAO.ClassName + " is not null");
            return this;
        }
    
        public Criteria andClassNameIsNotEmpty() {        
            addCriterion(IClassDefineDAO.ClassName + " is not null AND " + IClassDefineDAO.ClassName + " <> ''");
            return this;
        }
    		
    	public Criteria andClassNameIsEmpty() {       
            addCriterion("(" + IClassDefineDAO.ClassName + " is null OR " + IClassDefineDAO.ClassName + " = '')");
            return this;
        }
        
                
                        
                        
                               public Criteria andClassNameEqualTo(String value) {
        				
            addCriterion(IClassDefineDAO.ClassName + " = ", value, "className");
            return this;
        }
        
        public Criteria andClassNameEqualToForeignKey(java.lang.String key) {
	    StringBuffer str = new StringBuffer(IClassDefineDAO.ClassName);
	    str.append(" = ").append(key);
            addForeignKeyCriterion(str.toString());
            return this;
        }
		
		public Criteria andClassNameEqualTo(BaseQueryBean subQueryBean,
				IDataAccessInterface<?, ?> dao) {
			addCriterion(IClassDefineDAO.ClassName + " = ", subQueryBean, dao);
			return this;
		}
                public Criteria andClassNameNotEqualTo(String value) {
        	        
            addCriterion(IClassDefineDAO.ClassName + " <>", value, "className");
            return this;
        }
               
        public Criteria andClassNameNotEqualToOrIsNull(String value) {
        	        
            addCriterion(IClassDefineDAO.ClassName + " is null OR " + IClassDefineDAO.ClassName + " <>", value, "className");
            return this;
        }
        
        public Criteria andClassNameNotEqualToForeignKey(java.lang.String key) {
	    StringBuffer str = new StringBuffer(IClassDefineDAO.ClassName);
	    str.append(" <> ").append(key);
            addForeignKeyCriterion(str.toString());
            return this;
        }
		
		public Criteria andClassNameNotEqualTo(BaseQueryBean subQueryBean,
				IDataAccessInterface<?, ?> dao) {
			addCriterion(IClassDefineDAO.ClassName + " <> ", subQueryBean, dao);
			return this;
		}
               public Criteria andClassNameGreaterThan(String value) {
        				
            addCriterion(IClassDefineDAO.ClassName + " >", value, "className");
            return this;
        }
        
        public Criteria andClassNameGreaterThanForeignKey(java.lang.String key) {
	    StringBuffer str = new StringBuffer(IClassDefineDAO.ClassName);
	    str.append(" > ").append(key);
            addForeignKeyCriterion(str.toString());
            return this;
        }
		
		public Criteria andClassNameGreaterThan(BaseQueryBean subQueryBean,
				IDataAccessInterface<?, ?> dao) {
			addCriterion(IClassDefineDAO.ClassName + " > ", subQueryBean, dao);
			return this;
		}
               public Criteria andClassNameGreaterThanOrEqualTo(String value) {
        				
            addCriterion(IClassDefineDAO.ClassName + " >=", value, "className");
            return this;
        }
        
        public Criteria andClassNameGreaterThanOrEqualToForeignKey(java.lang.String key) {
			StringBuffer str = new StringBuffer(IClassDefineDAO.ClassName);
			str.append(" >= ").append(key);
            addForeignKeyCriterion(str.toString());
            return this;
        }
		
		public Criteria andClassNameGreaterThanOrEqualTo(BaseQueryBean subQueryBean,
				IDataAccessInterface<?, ?> dao) {
			addCriterion(IClassDefineDAO.ClassName + " >= ", subQueryBean, dao);
			return this;
		}
        
                public Criteria andClassNameLessThan(String value) {
        				
            addCriterion(IClassDefineDAO.ClassName + " <", value, "className");
            return this;
        }
        
        public Criteria andClassNameLessThanForeignKey(java.lang.String key) {
			StringBuffer str = new StringBuffer(IClassDefineDAO.ClassName);
			str.append(" < ").append(key);
            addForeignKeyCriterion(str.toString());
            return this;
        }
		
		public Criteria andClassNameLessThan(BaseQueryBean subQueryBean,
				IDataAccessInterface<?, ?> dao) {
			addCriterion(IClassDefineDAO.ClassName + " < ", subQueryBean, dao);
			return this;
		}
        
                public Criteria andClassNameLessThanOrEqualTo(String value) {
        				
            addCriterion(IClassDefineDAO.ClassName + " <=", value, "className");
            return this;
        }
        
        public Criteria andClassNameLessThanOrEqualToForeignKey(java.lang.String key) {
			StringBuffer str = new StringBuffer(IClassDefineDAO.ClassName);
			str.append(" <= ").append(key);
            addForeignKeyCriterion(str.toString());
            return this;
        }
		
		public Criteria andClassNameLessThanOrEqualTo(BaseQueryBean subQueryBean,
				IDataAccessInterface<?, ?> dao) {
			addCriterion(IClassDefineDAO.ClassName + " <= ", subQueryBean, dao);
			return this;
		}
		
				
        public Criteria andClassNameLike(String value) {
        	StringBuffer buffer = new StringBuffer("%");
        	buffer.append(value);
        	buffer.append("%");
            addCriterion(IClassDefineDAO.ClassName + " like", buffer.toString(), "className");
            return this;
        }
        public Criteria andClassNameNotLike(String value) {
            StringBuffer buffer = new StringBuffer("%");
        	buffer.append(value);
        	buffer.append("%");
            addCriterion(IClassDefineDAO.ClassName + " not like", buffer.toString(), "className");
            return this;
        }
                
                public Criteria andClassNameIn(List<String> values) {
        	
        	if(values.size() == 1){
        		return andClassNameEqualTo(values.get(0));
        	}
        	else{
            	addCriterion(IClassDefineDAO.ClassName + " in", values, "className");
            	return this;
            }
        }
        public Criteria andClassNameNotIn(List<String> values) {
        	if(values.size() == 1){
        		return andClassNameNotEqualTo(values.get(0));
        	}
        	else{
            	addCriterion(IClassDefineDAO.ClassName + " not in", values, "className");
            	return this;
            }
        }
        
        public Criteria andClassNameIn(String[] values) {
        	
        	if(values.length == 1){
        		return andClassNameEqualTo(values[0]);
        	}
        	else{
            	addCriterion(IClassDefineDAO.ClassName + " in", Arrays.asList(values), "className");
            	return this;
            }
        }
        public Criteria andClassNameNotIn(String[] values) {
        	if(values.length == 1){
        		return andClassNameNotEqualTo(values[0]);
        	}
        	else{
            	addCriterion(IClassDefineDAO.ClassName + " not in", Arrays.asList(values), "className");
            	return this;
            }
        }
		
		public Criteria andClassNameIn(BaseQueryBean subQueryBean,
				IDataAccessInterface<?, ?> dao) {
			addCriterion(IClassDefineDAO.ClassName + " in ", subQueryBean, dao);
			return this;
		}
		
		public Criteria andClassNameNotIn(BaseQueryBean subQueryBean,
				IDataAccessInterface<?, ?> dao) {
			addCriterion(IClassDefineDAO.ClassName + " not in ", subQueryBean, dao);
			return this;
		}
        
                public Criteria andClassNameBetween(String value1, String value2) {
            addCriterion(IClassDefineDAO.ClassName + " between", value1, value2, "className");
            return this;
        }
        
                public Criteria andClassNameNotBetween(String value1, String value2) {
            addCriterion(IClassDefineDAO.ClassName + " not between", value1, value2, "className");
            return this;
        }
        
            	
    	    	
    	    	
    	        
                
        public Criteria andFullClassNumberIsNull() {
            addCriterion(IClassDefineDAO.FullClassNumber + " is null");
            return this;
        }
        public Criteria andFullClassNumberIsNotNull() {
            addCriterion(IClassDefineDAO.FullClassNumber + " is not null");
            return this;
        }
    
        public Criteria andFullClassNumberIsNotEmpty() {        
            addCriterion(IClassDefineDAO.FullClassNumber + " is not null AND " + IClassDefineDAO.FullClassNumber + " <> ''");
            return this;
        }
    		
    	public Criteria andFullClassNumberIsEmpty() {       
            addCriterion("(" + IClassDefineDAO.FullClassNumber + " is null OR " + IClassDefineDAO.FullClassNumber + " = '')");
            return this;
        }
        
                
                        
                        
                                
        public Criteria andFullClassNumberEqualTo(long value) {
        	return andFullClassNumberEqualTo(Long.valueOf(value));
        }
               public Criteria andFullClassNumberEqualTo(java.lang.Long value) {
        				
            addCriterion(IClassDefineDAO.FullClassNumber + " = ", value, "fullClassNumber");
            return this;
        }
        
        public Criteria andFullClassNumberEqualToForeignKey(java.lang.String key) {
	    StringBuffer str = new StringBuffer(IClassDefineDAO.FullClassNumber);
	    str.append(" = ").append(key);
            addForeignKeyCriterion(str.toString());
            return this;
        }
		
		public Criteria andFullClassNumberEqualTo(BaseQueryBean subQueryBean,
				IDataAccessInterface<?, ?> dao) {
			addCriterion(IClassDefineDAO.FullClassNumber + " = ", subQueryBean, dao);
			return this;
		}
                
        public Criteria andFullClassNumberNotEqualTo(long value) {
        	return andFullClassNumberNotEqualTo(Long.valueOf(value));
        }
                public Criteria andFullClassNumberNotEqualTo(java.lang.Long value) {
        	        
            addCriterion(IClassDefineDAO.FullClassNumber + " <>", value, "fullClassNumber");
            return this;
        }
               
        public Criteria andFullClassNumberNotEqualToOrIsNull(long value) {
        	return andFullClassNumberNotEqualToOrIsNull(Long.valueOf(value));
        }
                
        public Criteria andFullClassNumberNotEqualToOrIsNull(java.lang.Long value) {
        	        
            addCriterion(IClassDefineDAO.FullClassNumber + " is null OR " + IClassDefineDAO.FullClassNumber + " <>", value, "fullClassNumber");
            return this;
        }
        
        public Criteria andFullClassNumberNotEqualToForeignKey(java.lang.String key) {
	    StringBuffer str = new StringBuffer(IClassDefineDAO.FullClassNumber);
	    str.append(" <> ").append(key);
            addForeignKeyCriterion(str.toString());
            return this;
        }
		
		public Criteria andFullClassNumberNotEqualTo(BaseQueryBean subQueryBean,
				IDataAccessInterface<?, ?> dao) {
			addCriterion(IClassDefineDAO.FullClassNumber + " <> ", subQueryBean, dao);
			return this;
		}
               
        public Criteria andFullClassNumberGreaterThan(long value) {
        	return andFullClassNumberGreaterThan(Long.valueOf(value));
        }
                public Criteria andFullClassNumberGreaterThan(java.lang.Long value) {
        				
            addCriterion(IClassDefineDAO.FullClassNumber + " >", value, "fullClassNumber");
            return this;
        }
        
        public Criteria andFullClassNumberGreaterThanForeignKey(java.lang.String key) {
	    StringBuffer str = new StringBuffer(IClassDefineDAO.FullClassNumber);
	    str.append(" > ").append(key);
            addForeignKeyCriterion(str.toString());
            return this;
        }
		
		public Criteria andFullClassNumberGreaterThan(BaseQueryBean subQueryBean,
				IDataAccessInterface<?, ?> dao) {
			addCriterion(IClassDefineDAO.FullClassNumber + " > ", subQueryBean, dao);
			return this;
		}
               
        public Criteria andFullClassNumberGreaterThanOrEqualTo(long value) {
        	return andFullClassNumberGreaterThanOrEqualTo(Long.valueOf(value));
        }
                public Criteria andFullClassNumberGreaterThanOrEqualTo(java.lang.Long value) {
        				
            addCriterion(IClassDefineDAO.FullClassNumber + " >=", value, "fullClassNumber");
            return this;
        }
        
        public Criteria andFullClassNumberGreaterThanOrEqualToForeignKey(java.lang.String key) {
			StringBuffer str = new StringBuffer(IClassDefineDAO.FullClassNumber);
			str.append(" >= ").append(key);
            addForeignKeyCriterion(str.toString());
            return this;
        }
		
		public Criteria andFullClassNumberGreaterThanOrEqualTo(BaseQueryBean subQueryBean,
				IDataAccessInterface<?, ?> dao) {
			addCriterion(IClassDefineDAO.FullClassNumber + " >= ", subQueryBean, dao);
			return this;
		}
        
                
        public Criteria andFullClassNumberLessThan(long value) {
        	return andFullClassNumberLessThan(Long.valueOf(value));
        }
                public Criteria andFullClassNumberLessThan(java.lang.Long value) {
        				
            addCriterion(IClassDefineDAO.FullClassNumber + " <", value, "fullClassNumber");
            return this;
        }
        
        public Criteria andFullClassNumberLessThanForeignKey(java.lang.String key) {
			StringBuffer str = new StringBuffer(IClassDefineDAO.FullClassNumber);
			str.append(" < ").append(key);
            addForeignKeyCriterion(str.toString());
            return this;
        }
		
		public Criteria andFullClassNumberLessThan(BaseQueryBean subQueryBean,
				IDataAccessInterface<?, ?> dao) {
			addCriterion(IClassDefineDAO.FullClassNumber + " < ", subQueryBean, dao);
			return this;
		}
        
                
        public Criteria andFullClassNumberLessThanOrEqualTo(long value) {
        	return andFullClassNumberLessThanOrEqualTo(Long.valueOf(value));
        }
                public Criteria andFullClassNumberLessThanOrEqualTo(java.lang.Long value) {
        				
            addCriterion(IClassDefineDAO.FullClassNumber + " <=", value, "fullClassNumber");
            return this;
        }
        
        public Criteria andFullClassNumberLessThanOrEqualToForeignKey(java.lang.String key) {
			StringBuffer str = new StringBuffer(IClassDefineDAO.FullClassNumber);
			str.append(" <= ").append(key);
            addForeignKeyCriterion(str.toString());
            return this;
        }
		
		public Criteria andFullClassNumberLessThanOrEqualTo(BaseQueryBean subQueryBean,
				IDataAccessInterface<?, ?> dao) {
			addCriterion(IClassDefineDAO.FullClassNumber + " <= ", subQueryBean, dao);
			return this;
		}
		
		        
                
        public Criteria andFullClassNumberIn(long[] values) {
        	if(values.length == 1){
        		return andFullClassNumberEqualTo((java.lang.Long)values[0]);
        	}
        	else{
            	addCriterion(IClassDefineDAO.FullClassNumber + " in", values, "fullClassNumber");
            	return this;
            }
        }
        
        public Criteria andFullClassNumberNotIn(long[] values) {
        	if(values.length == 1){
        		return andFullClassNumberNotEqualTo((java.lang.Long)values[0]);
        	}
        	else{
            	addCriterion(IClassDefineDAO.FullClassNumber + " not in", values, "fullClassNumber");
            	return this;
            }
        }
        
                public Criteria andFullClassNumberIn(List<java.lang.Long> values) {
        	
        	if(values.size() == 1){
        		return andFullClassNumberEqualTo(values.get(0));
        	}
        	else{
            	addCriterion(IClassDefineDAO.FullClassNumber + " in", values, "fullClassNumber");
            	return this;
            }
        }
        public Criteria andFullClassNumberNotIn(List<java.lang.Long> values) {
        	if(values.size() == 1){
        		return andFullClassNumberNotEqualTo(values.get(0));
        	}
        	else{
            	addCriterion(IClassDefineDAO.FullClassNumber + " not in", values, "fullClassNumber");
            	return this;
            }
        }
        
        public Criteria andFullClassNumberIn(java.lang.Long[] values) {
        	
        	if(values.length == 1){
        		return andFullClassNumberEqualTo(values[0]);
        	}
        	else{
            	addCriterion(IClassDefineDAO.FullClassNumber + " in", Arrays.asList(values), "fullClassNumber");
            	return this;
            }
        }
        public Criteria andFullClassNumberNotIn(java.lang.Long[] values) {
        	if(values.length == 1){
        		return andFullClassNumberNotEqualTo(values[0]);
        	}
        	else{
            	addCriterion(IClassDefineDAO.FullClassNumber + " not in", Arrays.asList(values), "fullClassNumber");
            	return this;
            }
        }
		
		public Criteria andFullClassNumberIn(BaseQueryBean subQueryBean,
				IDataAccessInterface<?, ?> dao) {
			addCriterion(IClassDefineDAO.FullClassNumber + " in ", subQueryBean, dao);
			return this;
		}
		
		public Criteria andFullClassNumberNotIn(BaseQueryBean subQueryBean,
				IDataAccessInterface<?, ?> dao) {
			addCriterion(IClassDefineDAO.FullClassNumber + " not in ", subQueryBean, dao);
			return this;
		}
        
                
        public Criteria andFullClassNumberBetween(long value1,long value2) {
        	addCriterion(IClassDefineDAO.FullClassNumber + " between", value1, value2, "fullClassNumber");
            return this;
        }
                public Criteria andFullClassNumberBetween(java.lang.Long value1, java.lang.Long value2) {
            addCriterion(IClassDefineDAO.FullClassNumber + " between", value1, value2, "fullClassNumber");
            return this;
        }
        
                
        public Criteria andFullClassNumberNotBetween(long value1,long value2) {
        	addCriterion(IClassDefineDAO.FullClassNumber + " not between", value1, value2, "fullClassNumber");
            return this;
        }
                public Criteria andFullClassNumberNotBetween(java.lang.Long value1, java.lang.Long value2) {
            addCriterion(IClassDefineDAO.FullClassNumber + " not between", value1, value2, "fullClassNumber");
            return this;
        }
        
            	
    	    	
    	    	
    	        
                
        public Criteria andMinClassNumberIsNull() {
            addCriterion(IClassDefineDAO.MinClassNumber + " is null");
            return this;
        }
        public Criteria andMinClassNumberIsNotNull() {
            addCriterion(IClassDefineDAO.MinClassNumber + " is not null");
            return this;
        }
    
        public Criteria andMinClassNumberIsNotEmpty() {        
            addCriterion(IClassDefineDAO.MinClassNumber + " is not null AND " + IClassDefineDAO.MinClassNumber + " <> ''");
            return this;
        }
    		
    	public Criteria andMinClassNumberIsEmpty() {       
            addCriterion("(" + IClassDefineDAO.MinClassNumber + " is null OR " + IClassDefineDAO.MinClassNumber + " = '')");
            return this;
        }
        
                
                        
                        
                                
        public Criteria andMinClassNumberEqualTo(long value) {
        	return andMinClassNumberEqualTo(Long.valueOf(value));
        }
               public Criteria andMinClassNumberEqualTo(java.lang.Long value) {
        				
            addCriterion(IClassDefineDAO.MinClassNumber + " = ", value, "minClassNumber");
            return this;
        }
        
        public Criteria andMinClassNumberEqualToForeignKey(java.lang.String key) {
	    StringBuffer str = new StringBuffer(IClassDefineDAO.MinClassNumber);
	    str.append(" = ").append(key);
            addForeignKeyCriterion(str.toString());
            return this;
        }
		
		public Criteria andMinClassNumberEqualTo(BaseQueryBean subQueryBean,
				IDataAccessInterface<?, ?> dao) {
			addCriterion(IClassDefineDAO.MinClassNumber + " = ", subQueryBean, dao);
			return this;
		}
                
        public Criteria andMinClassNumberNotEqualTo(long value) {
        	return andMinClassNumberNotEqualTo(Long.valueOf(value));
        }
                public Criteria andMinClassNumberNotEqualTo(java.lang.Long value) {
        	        
            addCriterion(IClassDefineDAO.MinClassNumber + " <>", value, "minClassNumber");
            return this;
        }
               
        public Criteria andMinClassNumberNotEqualToOrIsNull(long value) {
        	return andMinClassNumberNotEqualToOrIsNull(Long.valueOf(value));
        }
                
        public Criteria andMinClassNumberNotEqualToOrIsNull(java.lang.Long value) {
        	        
            addCriterion(IClassDefineDAO.MinClassNumber + " is null OR " + IClassDefineDAO.MinClassNumber + " <>", value, "minClassNumber");
            return this;
        }
        
        public Criteria andMinClassNumberNotEqualToForeignKey(java.lang.String key) {
	    StringBuffer str = new StringBuffer(IClassDefineDAO.MinClassNumber);
	    str.append(" <> ").append(key);
            addForeignKeyCriterion(str.toString());
            return this;
        }
		
		public Criteria andMinClassNumberNotEqualTo(BaseQueryBean subQueryBean,
				IDataAccessInterface<?, ?> dao) {
			addCriterion(IClassDefineDAO.MinClassNumber + " <> ", subQueryBean, dao);
			return this;
		}
               
        public Criteria andMinClassNumberGreaterThan(long value) {
        	return andMinClassNumberGreaterThan(Long.valueOf(value));
        }
                public Criteria andMinClassNumberGreaterThan(java.lang.Long value) {
        				
            addCriterion(IClassDefineDAO.MinClassNumber + " >", value, "minClassNumber");
            return this;
        }
        
        public Criteria andMinClassNumberGreaterThanForeignKey(java.lang.String key) {
	    StringBuffer str = new StringBuffer(IClassDefineDAO.MinClassNumber);
	    str.append(" > ").append(key);
            addForeignKeyCriterion(str.toString());
            return this;
        }
		
		public Criteria andMinClassNumberGreaterThan(BaseQueryBean subQueryBean,
				IDataAccessInterface<?, ?> dao) {
			addCriterion(IClassDefineDAO.MinClassNumber + " > ", subQueryBean, dao);
			return this;
		}
               
        public Criteria andMinClassNumberGreaterThanOrEqualTo(long value) {
        	return andMinClassNumberGreaterThanOrEqualTo(Long.valueOf(value));
        }
                public Criteria andMinClassNumberGreaterThanOrEqualTo(java.lang.Long value) {
        				
            addCriterion(IClassDefineDAO.MinClassNumber + " >=", value, "minClassNumber");
            return this;
        }
        
        public Criteria andMinClassNumberGreaterThanOrEqualToForeignKey(java.lang.String key) {
			StringBuffer str = new StringBuffer(IClassDefineDAO.MinClassNumber);
			str.append(" >= ").append(key);
            addForeignKeyCriterion(str.toString());
            return this;
        }
		
		public Criteria andMinClassNumberGreaterThanOrEqualTo(BaseQueryBean subQueryBean,
				IDataAccessInterface<?, ?> dao) {
			addCriterion(IClassDefineDAO.MinClassNumber + " >= ", subQueryBean, dao);
			return this;
		}
        
                
        public Criteria andMinClassNumberLessThan(long value) {
        	return andMinClassNumberLessThan(Long.valueOf(value));
        }
                public Criteria andMinClassNumberLessThan(java.lang.Long value) {
        				
            addCriterion(IClassDefineDAO.MinClassNumber + " <", value, "minClassNumber");
            return this;
        }
        
        public Criteria andMinClassNumberLessThanForeignKey(java.lang.String key) {
			StringBuffer str = new StringBuffer(IClassDefineDAO.MinClassNumber);
			str.append(" < ").append(key);
            addForeignKeyCriterion(str.toString());
            return this;
        }
		
		public Criteria andMinClassNumberLessThan(BaseQueryBean subQueryBean,
				IDataAccessInterface<?, ?> dao) {
			addCriterion(IClassDefineDAO.MinClassNumber + " < ", subQueryBean, dao);
			return this;
		}
        
                
        public Criteria andMinClassNumberLessThanOrEqualTo(long value) {
        	return andMinClassNumberLessThanOrEqualTo(Long.valueOf(value));
        }
                public Criteria andMinClassNumberLessThanOrEqualTo(java.lang.Long value) {
        				
            addCriterion(IClassDefineDAO.MinClassNumber + " <=", value, "minClassNumber");
            return this;
        }
        
        public Criteria andMinClassNumberLessThanOrEqualToForeignKey(java.lang.String key) {
			StringBuffer str = new StringBuffer(IClassDefineDAO.MinClassNumber);
			str.append(" <= ").append(key);
            addForeignKeyCriterion(str.toString());
            return this;
        }
		
		public Criteria andMinClassNumberLessThanOrEqualTo(BaseQueryBean subQueryBean,
				IDataAccessInterface<?, ?> dao) {
			addCriterion(IClassDefineDAO.MinClassNumber + " <= ", subQueryBean, dao);
			return this;
		}
		
		        
                
        public Criteria andMinClassNumberIn(long[] values) {
        	if(values.length == 1){
        		return andMinClassNumberEqualTo((java.lang.Long)values[0]);
        	}
        	else{
            	addCriterion(IClassDefineDAO.MinClassNumber + " in", values, "minClassNumber");
            	return this;
            }
        }
        
        public Criteria andMinClassNumberNotIn(long[] values) {
        	if(values.length == 1){
        		return andMinClassNumberNotEqualTo((java.lang.Long)values[0]);
        	}
        	else{
            	addCriterion(IClassDefineDAO.MinClassNumber + " not in", values, "minClassNumber");
            	return this;
            }
        }
        
                public Criteria andMinClassNumberIn(List<java.lang.Long> values) {
        	
        	if(values.size() == 1){
        		return andMinClassNumberEqualTo(values.get(0));
        	}
        	else{
            	addCriterion(IClassDefineDAO.MinClassNumber + " in", values, "minClassNumber");
            	return this;
            }
        }
        public Criteria andMinClassNumberNotIn(List<java.lang.Long> values) {
        	if(values.size() == 1){
        		return andMinClassNumberNotEqualTo(values.get(0));
        	}
        	else{
            	addCriterion(IClassDefineDAO.MinClassNumber + " not in", values, "minClassNumber");
            	return this;
            }
        }
        
        public Criteria andMinClassNumberIn(java.lang.Long[] values) {
        	
        	if(values.length == 1){
        		return andMinClassNumberEqualTo(values[0]);
        	}
        	else{
            	addCriterion(IClassDefineDAO.MinClassNumber + " in", Arrays.asList(values), "minClassNumber");
            	return this;
            }
        }
        public Criteria andMinClassNumberNotIn(java.lang.Long[] values) {
        	if(values.length == 1){
        		return andMinClassNumberNotEqualTo(values[0]);
        	}
        	else{
            	addCriterion(IClassDefineDAO.MinClassNumber + " not in", Arrays.asList(values), "minClassNumber");
            	return this;
            }
        }
		
		public Criteria andMinClassNumberIn(BaseQueryBean subQueryBean,
				IDataAccessInterface<?, ?> dao) {
			addCriterion(IClassDefineDAO.MinClassNumber + " in ", subQueryBean, dao);
			return this;
		}
		
		public Criteria andMinClassNumberNotIn(BaseQueryBean subQueryBean,
				IDataAccessInterface<?, ?> dao) {
			addCriterion(IClassDefineDAO.MinClassNumber + " not in ", subQueryBean, dao);
			return this;
		}
        
                
        public Criteria andMinClassNumberBetween(long value1,long value2) {
        	addCriterion(IClassDefineDAO.MinClassNumber + " between", value1, value2, "minClassNumber");
            return this;
        }
                public Criteria andMinClassNumberBetween(java.lang.Long value1, java.lang.Long value2) {
            addCriterion(IClassDefineDAO.MinClassNumber + " between", value1, value2, "minClassNumber");
            return this;
        }
        
                
        public Criteria andMinClassNumberNotBetween(long value1,long value2) {
        	addCriterion(IClassDefineDAO.MinClassNumber + " not between", value1, value2, "minClassNumber");
            return this;
        }
                public Criteria andMinClassNumberNotBetween(java.lang.Long value1, java.lang.Long value2) {
            addCriterion(IClassDefineDAO.MinClassNumber + " not between", value1, value2, "minClassNumber");
            return this;
        }
        
            	
    	    	
    	    	
    	        
                
        public Criteria andEnrollmentStatusIsNull() {
            addCriterion(IClassDefineDAO.EnrollmentStatus + " is null");
            return this;
        }
        public Criteria andEnrollmentStatusIsNotNull() {
            addCriterion(IClassDefineDAO.EnrollmentStatus + " is not null");
            return this;
        }
    
        public Criteria andEnrollmentStatusIsNotEmpty() {        
            addCriterion(IClassDefineDAO.EnrollmentStatus + " is not null AND " + IClassDefineDAO.EnrollmentStatus + " <> ''");
            return this;
        }
    		
    	public Criteria andEnrollmentStatusIsEmpty() {       
            addCriterion("(" + IClassDefineDAO.EnrollmentStatus + " is null OR " + IClassDefineDAO.EnrollmentStatus + " = '')");
            return this;
        }
        
                
                        
                        
                               public Criteria andEnrollmentStatusEqualTo(String value) {
        				
            addCriterion(IClassDefineDAO.EnrollmentStatus + " = ", value, "enrollmentStatus");
            return this;
        }
        
        public Criteria andEnrollmentStatusEqualToForeignKey(java.lang.String key) {
	    StringBuffer str = new StringBuffer(IClassDefineDAO.EnrollmentStatus);
	    str.append(" = ").append(key);
            addForeignKeyCriterion(str.toString());
            return this;
        }
		
		public Criteria andEnrollmentStatusEqualTo(BaseQueryBean subQueryBean,
				IDataAccessInterface<?, ?> dao) {
			addCriterion(IClassDefineDAO.EnrollmentStatus + " = ", subQueryBean, dao);
			return this;
		}
                public Criteria andEnrollmentStatusNotEqualTo(String value) {
        	        
            addCriterion(IClassDefineDAO.EnrollmentStatus + " <>", value, "enrollmentStatus");
            return this;
        }
               
        public Criteria andEnrollmentStatusNotEqualToOrIsNull(String value) {
        	        
            addCriterion(IClassDefineDAO.EnrollmentStatus + " is null OR " + IClassDefineDAO.EnrollmentStatus + " <>", value, "enrollmentStatus");
            return this;
        }
        
        public Criteria andEnrollmentStatusNotEqualToForeignKey(java.lang.String key) {
	    StringBuffer str = new StringBuffer(IClassDefineDAO.EnrollmentStatus);
	    str.append(" <> ").append(key);
            addForeignKeyCriterion(str.toString());
            return this;
        }
		
		public Criteria andEnrollmentStatusNotEqualTo(BaseQueryBean subQueryBean,
				IDataAccessInterface<?, ?> dao) {
			addCriterion(IClassDefineDAO.EnrollmentStatus + " <> ", subQueryBean, dao);
			return this;
		}
               public Criteria andEnrollmentStatusGreaterThan(String value) {
        				
            addCriterion(IClassDefineDAO.EnrollmentStatus + " >", value, "enrollmentStatus");
            return this;
        }
        
        public Criteria andEnrollmentStatusGreaterThanForeignKey(java.lang.String key) {
	    StringBuffer str = new StringBuffer(IClassDefineDAO.EnrollmentStatus);
	    str.append(" > ").append(key);
            addForeignKeyCriterion(str.toString());
            return this;
        }
		
		public Criteria andEnrollmentStatusGreaterThan(BaseQueryBean subQueryBean,
				IDataAccessInterface<?, ?> dao) {
			addCriterion(IClassDefineDAO.EnrollmentStatus + " > ", subQueryBean, dao);
			return this;
		}
               public Criteria andEnrollmentStatusGreaterThanOrEqualTo(String value) {
        				
            addCriterion(IClassDefineDAO.EnrollmentStatus + " >=", value, "enrollmentStatus");
            return this;
        }
        
        public Criteria andEnrollmentStatusGreaterThanOrEqualToForeignKey(java.lang.String key) {
			StringBuffer str = new StringBuffer(IClassDefineDAO.EnrollmentStatus);
			str.append(" >= ").append(key);
            addForeignKeyCriterion(str.toString());
            return this;
        }
		
		public Criteria andEnrollmentStatusGreaterThanOrEqualTo(BaseQueryBean subQueryBean,
				IDataAccessInterface<?, ?> dao) {
			addCriterion(IClassDefineDAO.EnrollmentStatus + " >= ", subQueryBean, dao);
			return this;
		}
        
                public Criteria andEnrollmentStatusLessThan(String value) {
        				
            addCriterion(IClassDefineDAO.EnrollmentStatus + " <", value, "enrollmentStatus");
            return this;
        }
        
        public Criteria andEnrollmentStatusLessThanForeignKey(java.lang.String key) {
			StringBuffer str = new StringBuffer(IClassDefineDAO.EnrollmentStatus);
			str.append(" < ").append(key);
            addForeignKeyCriterion(str.toString());
            return this;
        }
		
		public Criteria andEnrollmentStatusLessThan(BaseQueryBean subQueryBean,
				IDataAccessInterface<?, ?> dao) {
			addCriterion(IClassDefineDAO.EnrollmentStatus + " < ", subQueryBean, dao);
			return this;
		}
        
                public Criteria andEnrollmentStatusLessThanOrEqualTo(String value) {
        				
            addCriterion(IClassDefineDAO.EnrollmentStatus + " <=", value, "enrollmentStatus");
            return this;
        }
        
        public Criteria andEnrollmentStatusLessThanOrEqualToForeignKey(java.lang.String key) {
			StringBuffer str = new StringBuffer(IClassDefineDAO.EnrollmentStatus);
			str.append(" <= ").append(key);
            addForeignKeyCriterion(str.toString());
            return this;
        }
		
		public Criteria andEnrollmentStatusLessThanOrEqualTo(BaseQueryBean subQueryBean,
				IDataAccessInterface<?, ?> dao) {
			addCriterion(IClassDefineDAO.EnrollmentStatus + " <= ", subQueryBean, dao);
			return this;
		}
		
				
        public Criteria andEnrollmentStatusLike(String value) {
        	StringBuffer buffer = new StringBuffer("%");
        	buffer.append(value);
        	buffer.append("%");
            addCriterion(IClassDefineDAO.EnrollmentStatus + " like", buffer.toString(), "enrollmentStatus");
            return this;
        }
        public Criteria andEnrollmentStatusNotLike(String value) {
            StringBuffer buffer = new StringBuffer("%");
        	buffer.append(value);
        	buffer.append("%");
            addCriterion(IClassDefineDAO.EnrollmentStatus + " not like", buffer.toString(), "enrollmentStatus");
            return this;
        }
                
                public Criteria andEnrollmentStatusIn(List<String> values) {
        	
        	if(values.size() == 1){
        		return andEnrollmentStatusEqualTo(values.get(0));
        	}
        	else{
            	addCriterion(IClassDefineDAO.EnrollmentStatus + " in", values, "enrollmentStatus");
            	return this;
            }
        }
        public Criteria andEnrollmentStatusNotIn(List<String> values) {
        	if(values.size() == 1){
        		return andEnrollmentStatusNotEqualTo(values.get(0));
        	}
        	else{
            	addCriterion(IClassDefineDAO.EnrollmentStatus + " not in", values, "enrollmentStatus");
            	return this;
            }
        }
        
        public Criteria andEnrollmentStatusIn(String[] values) {
        	
        	if(values.length == 1){
        		return andEnrollmentStatusEqualTo(values[0]);
        	}
        	else{
            	addCriterion(IClassDefineDAO.EnrollmentStatus + " in", Arrays.asList(values), "enrollmentStatus");
            	return this;
            }
        }
        public Criteria andEnrollmentStatusNotIn(String[] values) {
        	if(values.length == 1){
        		return andEnrollmentStatusNotEqualTo(values[0]);
        	}
        	else{
            	addCriterion(IClassDefineDAO.EnrollmentStatus + " not in", Arrays.asList(values), "enrollmentStatus");
            	return this;
            }
        }
		
		public Criteria andEnrollmentStatusIn(BaseQueryBean subQueryBean,
				IDataAccessInterface<?, ?> dao) {
			addCriterion(IClassDefineDAO.EnrollmentStatus + " in ", subQueryBean, dao);
			return this;
		}
		
		public Criteria andEnrollmentStatusNotIn(BaseQueryBean subQueryBean,
				IDataAccessInterface<?, ?> dao) {
			addCriterion(IClassDefineDAO.EnrollmentStatus + " not in ", subQueryBean, dao);
			return this;
		}
        
                public Criteria andEnrollmentStatusBetween(String value1, String value2) {
            addCriterion(IClassDefineDAO.EnrollmentStatus + " between", value1, value2, "enrollmentStatus");
            return this;
        }
        
                public Criteria andEnrollmentStatusNotBetween(String value1, String value2) {
            addCriterion(IClassDefineDAO.EnrollmentStatus + " not between", value1, value2, "enrollmentStatus");
            return this;
        }
        
            	
    	    	
    	    	
    	        
                
        public Criteria andClassRoomIdIsNull() {
            addCriterion(IClassDefineDAO.ClassRoomId + " is null");
            return this;
        }
        public Criteria andClassRoomIdIsNotNull() {
            addCriterion(IClassDefineDAO.ClassRoomId + " is not null");
            return this;
        }
    
        public Criteria andClassRoomIdIsNotEmpty() {        
            addCriterion(IClassDefineDAO.ClassRoomId + " is not null AND " + IClassDefineDAO.ClassRoomId + " <> ''");
            return this;
        }
    		
    	public Criteria andClassRoomIdIsEmpty() {       
            addCriterion("(" + IClassDefineDAO.ClassRoomId + " is null OR " + IClassDefineDAO.ClassRoomId + " = '')");
            return this;
        }
        
                
                        
                        
                                
        public Criteria andClassRoomIdEqualTo(long value) {
        	return andClassRoomIdEqualTo(Long.valueOf(value));
        }
               public Criteria andClassRoomIdEqualTo(java.lang.Long value) {
        				
            addCriterion(IClassDefineDAO.ClassRoomId + " = ", value, "classRoomId");
            return this;
        }
        
        public Criteria andClassRoomIdEqualToForeignKey(java.lang.String key) {
	    StringBuffer str = new StringBuffer(IClassDefineDAO.ClassRoomId);
	    str.append(" = ").append(key);
            addForeignKeyCriterion(str.toString());
            return this;
        }
		
		public Criteria andClassRoomIdEqualTo(BaseQueryBean subQueryBean,
				IDataAccessInterface<?, ?> dao) {
			addCriterion(IClassDefineDAO.ClassRoomId + " = ", subQueryBean, dao);
			return this;
		}
                
        public Criteria andClassRoomIdNotEqualTo(long value) {
        	return andClassRoomIdNotEqualTo(Long.valueOf(value));
        }
                public Criteria andClassRoomIdNotEqualTo(java.lang.Long value) {
        	        
            addCriterion(IClassDefineDAO.ClassRoomId + " <>", value, "classRoomId");
            return this;
        }
               
        public Criteria andClassRoomIdNotEqualToOrIsNull(long value) {
        	return andClassRoomIdNotEqualToOrIsNull(Long.valueOf(value));
        }
                
        public Criteria andClassRoomIdNotEqualToOrIsNull(java.lang.Long value) {
        	        
            addCriterion(IClassDefineDAO.ClassRoomId + " is null OR " + IClassDefineDAO.ClassRoomId + " <>", value, "classRoomId");
            return this;
        }
        
        public Criteria andClassRoomIdNotEqualToForeignKey(java.lang.String key) {
	    StringBuffer str = new StringBuffer(IClassDefineDAO.ClassRoomId);
	    str.append(" <> ").append(key);
            addForeignKeyCriterion(str.toString());
            return this;
        }
		
		public Criteria andClassRoomIdNotEqualTo(BaseQueryBean subQueryBean,
				IDataAccessInterface<?, ?> dao) {
			addCriterion(IClassDefineDAO.ClassRoomId + " <> ", subQueryBean, dao);
			return this;
		}
               
        public Criteria andClassRoomIdGreaterThan(long value) {
        	return andClassRoomIdGreaterThan(Long.valueOf(value));
        }
                public Criteria andClassRoomIdGreaterThan(java.lang.Long value) {
        				
            addCriterion(IClassDefineDAO.ClassRoomId + " >", value, "classRoomId");
            return this;
        }
        
        public Criteria andClassRoomIdGreaterThanForeignKey(java.lang.String key) {
	    StringBuffer str = new StringBuffer(IClassDefineDAO.ClassRoomId);
	    str.append(" > ").append(key);
            addForeignKeyCriterion(str.toString());
            return this;
        }
		
		public Criteria andClassRoomIdGreaterThan(BaseQueryBean subQueryBean,
				IDataAccessInterface<?, ?> dao) {
			addCriterion(IClassDefineDAO.ClassRoomId + " > ", subQueryBean, dao);
			return this;
		}
               
        public Criteria andClassRoomIdGreaterThanOrEqualTo(long value) {
        	return andClassRoomIdGreaterThanOrEqualTo(Long.valueOf(value));
        }
                public Criteria andClassRoomIdGreaterThanOrEqualTo(java.lang.Long value) {
        				
            addCriterion(IClassDefineDAO.ClassRoomId + " >=", value, "classRoomId");
            return this;
        }
        
        public Criteria andClassRoomIdGreaterThanOrEqualToForeignKey(java.lang.String key) {
			StringBuffer str = new StringBuffer(IClassDefineDAO.ClassRoomId);
			str.append(" >= ").append(key);
            addForeignKeyCriterion(str.toString());
            return this;
        }
		
		public Criteria andClassRoomIdGreaterThanOrEqualTo(BaseQueryBean subQueryBean,
				IDataAccessInterface<?, ?> dao) {
			addCriterion(IClassDefineDAO.ClassRoomId + " >= ", subQueryBean, dao);
			return this;
		}
        
                
        public Criteria andClassRoomIdLessThan(long value) {
        	return andClassRoomIdLessThan(Long.valueOf(value));
        }
                public Criteria andClassRoomIdLessThan(java.lang.Long value) {
        				
            addCriterion(IClassDefineDAO.ClassRoomId + " <", value, "classRoomId");
            return this;
        }
        
        public Criteria andClassRoomIdLessThanForeignKey(java.lang.String key) {
			StringBuffer str = new StringBuffer(IClassDefineDAO.ClassRoomId);
			str.append(" < ").append(key);
            addForeignKeyCriterion(str.toString());
            return this;
        }
		
		public Criteria andClassRoomIdLessThan(BaseQueryBean subQueryBean,
				IDataAccessInterface<?, ?> dao) {
			addCriterion(IClassDefineDAO.ClassRoomId + " < ", subQueryBean, dao);
			return this;
		}
        
                
        public Criteria andClassRoomIdLessThanOrEqualTo(long value) {
        	return andClassRoomIdLessThanOrEqualTo(Long.valueOf(value));
        }
                public Criteria andClassRoomIdLessThanOrEqualTo(java.lang.Long value) {
        				
            addCriterion(IClassDefineDAO.ClassRoomId + " <=", value, "classRoomId");
            return this;
        }
        
        public Criteria andClassRoomIdLessThanOrEqualToForeignKey(java.lang.String key) {
			StringBuffer str = new StringBuffer(IClassDefineDAO.ClassRoomId);
			str.append(" <= ").append(key);
            addForeignKeyCriterion(str.toString());
            return this;
        }
		
		public Criteria andClassRoomIdLessThanOrEqualTo(BaseQueryBean subQueryBean,
				IDataAccessInterface<?, ?> dao) {
			addCriterion(IClassDefineDAO.ClassRoomId + " <= ", subQueryBean, dao);
			return this;
		}
		
		        
                
        public Criteria andClassRoomIdIn(long[] values) {
        	if(values.length == 1){
        		return andClassRoomIdEqualTo((java.lang.Long)values[0]);
        	}
        	else{
            	addCriterion(IClassDefineDAO.ClassRoomId + " in", values, "classRoomId");
            	return this;
            }
        }
        
        public Criteria andClassRoomIdNotIn(long[] values) {
        	if(values.length == 1){
        		return andClassRoomIdNotEqualTo((java.lang.Long)values[0]);
        	}
        	else{
            	addCriterion(IClassDefineDAO.ClassRoomId + " not in", values, "classRoomId");
            	return this;
            }
        }
        
                public Criteria andClassRoomIdIn(List<java.lang.Long> values) {
        	
        	if(values.size() == 1){
        		return andClassRoomIdEqualTo(values.get(0));
        	}
        	else{
            	addCriterion(IClassDefineDAO.ClassRoomId + " in", values, "classRoomId");
            	return this;
            }
        }
        public Criteria andClassRoomIdNotIn(List<java.lang.Long> values) {
        	if(values.size() == 1){
        		return andClassRoomIdNotEqualTo(values.get(0));
        	}
        	else{
            	addCriterion(IClassDefineDAO.ClassRoomId + " not in", values, "classRoomId");
            	return this;
            }
        }
        
        public Criteria andClassRoomIdIn(java.lang.Long[] values) {
        	
        	if(values.length == 1){
        		return andClassRoomIdEqualTo(values[0]);
        	}
        	else{
            	addCriterion(IClassDefineDAO.ClassRoomId + " in", Arrays.asList(values), "classRoomId");
            	return this;
            }
        }
        public Criteria andClassRoomIdNotIn(java.lang.Long[] values) {
        	if(values.length == 1){
        		return andClassRoomIdNotEqualTo(values[0]);
        	}
        	else{
            	addCriterion(IClassDefineDAO.ClassRoomId + " not in", Arrays.asList(values), "classRoomId");
            	return this;
            }
        }
		
		public Criteria andClassRoomIdIn(BaseQueryBean subQueryBean,
				IDataAccessInterface<?, ?> dao) {
			addCriterion(IClassDefineDAO.ClassRoomId + " in ", subQueryBean, dao);
			return this;
		}
		
		public Criteria andClassRoomIdNotIn(BaseQueryBean subQueryBean,
				IDataAccessInterface<?, ?> dao) {
			addCriterion(IClassDefineDAO.ClassRoomId + " not in ", subQueryBean, dao);
			return this;
		}
        
                
        public Criteria andClassRoomIdBetween(long value1,long value2) {
        	addCriterion(IClassDefineDAO.ClassRoomId + " between", value1, value2, "classRoomId");
            return this;
        }
                public Criteria andClassRoomIdBetween(java.lang.Long value1, java.lang.Long value2) {
            addCriterion(IClassDefineDAO.ClassRoomId + " between", value1, value2, "classRoomId");
            return this;
        }
        
                
        public Criteria andClassRoomIdNotBetween(long value1,long value2) {
        	addCriterion(IClassDefineDAO.ClassRoomId + " not between", value1, value2, "classRoomId");
            return this;
        }
                public Criteria andClassRoomIdNotBetween(java.lang.Long value1, java.lang.Long value2) {
            addCriterion(IClassDefineDAO.ClassRoomId + " not between", value1, value2, "classRoomId");
            return this;
        }
        
            	
    	    	
    	    	
    	        
                
        public Criteria andStartClassDateIsNull() {
            addCriterion(IClassDefineDAO.StartClassDate + " is null");
            return this;
        }
        public Criteria andStartClassDateIsNotNull() {
            addCriterion(IClassDefineDAO.StartClassDate + " is not null");
            return this;
        }
    
        public Criteria andStartClassDateIsNotEmpty() {        
            addCriterion(IClassDefineDAO.StartClassDate + " is not null AND " + IClassDefineDAO.StartClassDate + " <> ''");
            return this;
        }
    		
    	public Criteria andStartClassDateIsEmpty() {       
            addCriterion("(" + IClassDefineDAO.StartClassDate + " is null OR " + IClassDefineDAO.StartClassDate + " = '')");
            return this;
        }
        
                
                        
                        
                               public Criteria andStartClassDateEqualTo(java.util.Date value) {
        				
            addCriterionForJDBCDate(IClassDefineDAO.StartClassDate + " = ", value, "startClassDate");
            return this;
        }
        
        public Criteria andStartClassDateEqualToForeignKey(java.lang.String key) {
	    StringBuffer str = new StringBuffer(IClassDefineDAO.StartClassDate);
	    str.append(" = ").append(key);
            addForeignKeyCriterion(str.toString());
            return this;
        }
		
		public Criteria andStartClassDateEqualTo(BaseQueryBean subQueryBean,
				IDataAccessInterface<?, ?> dao) {
			addCriterion(IClassDefineDAO.StartClassDate + " = ", subQueryBean, dao);
			return this;
		}
                public Criteria andStartClassDateNotEqualTo(java.util.Date value) {
        	        
            addCriterionForJDBCDate(IClassDefineDAO.StartClassDate + " <>", value, "startClassDate");
            return this;
        }
               
        public Criteria andStartClassDateNotEqualToOrIsNull(java.util.Date value) {
        	        
            addCriterionForJDBCDate(IClassDefineDAO.StartClassDate + " is null OR " + IClassDefineDAO.StartClassDate + " <>", value, "startClassDate");
            return this;
        }
        
        public Criteria andStartClassDateNotEqualToForeignKey(java.lang.String key) {
	    StringBuffer str = new StringBuffer(IClassDefineDAO.StartClassDate);
	    str.append(" <> ").append(key);
            addForeignKeyCriterion(str.toString());
            return this;
        }
		
		public Criteria andStartClassDateNotEqualTo(BaseQueryBean subQueryBean,
				IDataAccessInterface<?, ?> dao) {
			addCriterion(IClassDefineDAO.StartClassDate + " <> ", subQueryBean, dao);
			return this;
		}
               public Criteria andStartClassDateGreaterThan(java.util.Date value) {
        				
            addCriterionForJDBCDate(IClassDefineDAO.StartClassDate + " >", value, "startClassDate");
            return this;
        }
        
        public Criteria andStartClassDateGreaterThanForeignKey(java.lang.String key) {
	    StringBuffer str = new StringBuffer(IClassDefineDAO.StartClassDate);
	    str.append(" > ").append(key);
            addForeignKeyCriterion(str.toString());
            return this;
        }
		
		public Criteria andStartClassDateGreaterThan(BaseQueryBean subQueryBean,
				IDataAccessInterface<?, ?> dao) {
			addCriterion(IClassDefineDAO.StartClassDate + " > ", subQueryBean, dao);
			return this;
		}
               public Criteria andStartClassDateGreaterThanOrEqualTo(java.util.Date value) {
        				
            addCriterionForJDBCDate(IClassDefineDAO.StartClassDate + " >=", value, "startClassDate");
            return this;
        }
        
        public Criteria andStartClassDateGreaterThanOrEqualToForeignKey(java.lang.String key) {
			StringBuffer str = new StringBuffer(IClassDefineDAO.StartClassDate);
			str.append(" >= ").append(key);
            addForeignKeyCriterion(str.toString());
            return this;
        }
		
		public Criteria andStartClassDateGreaterThanOrEqualTo(BaseQueryBean subQueryBean,
				IDataAccessInterface<?, ?> dao) {
			addCriterion(IClassDefineDAO.StartClassDate + " >= ", subQueryBean, dao);
			return this;
		}
        
                public Criteria andStartClassDateLessThan(java.util.Date value) {
        				
            addCriterionForJDBCDate(IClassDefineDAO.StartClassDate + " <", value, "startClassDate");
            return this;
        }
        
        public Criteria andStartClassDateLessThanForeignKey(java.lang.String key) {
			StringBuffer str = new StringBuffer(IClassDefineDAO.StartClassDate);
			str.append(" < ").append(key);
            addForeignKeyCriterion(str.toString());
            return this;
        }
		
		public Criteria andStartClassDateLessThan(BaseQueryBean subQueryBean,
				IDataAccessInterface<?, ?> dao) {
			addCriterion(IClassDefineDAO.StartClassDate + " < ", subQueryBean, dao);
			return this;
		}
        
                public Criteria andStartClassDateLessThanOrEqualTo(java.util.Date value) {
        				
            addCriterionForJDBCDate(IClassDefineDAO.StartClassDate + " <=", value, "startClassDate");
            return this;
        }
        
        public Criteria andStartClassDateLessThanOrEqualToForeignKey(java.lang.String key) {
			StringBuffer str = new StringBuffer(IClassDefineDAO.StartClassDate);
			str.append(" <= ").append(key);
            addForeignKeyCriterion(str.toString());
            return this;
        }
		
		public Criteria andStartClassDateLessThanOrEqualTo(BaseQueryBean subQueryBean,
				IDataAccessInterface<?, ?> dao) {
			addCriterion(IClassDefineDAO.StartClassDate + " <= ", subQueryBean, dao);
			return this;
		}
		
		        
                public Criteria andStartClassDateIn(List<java.util.Date> values) {
        	
        	if(values.size() == 1){
        		return andStartClassDateEqualTo(values.get(0));
        	}
        	else{
            	addCriterionForJDBCDate(IClassDefineDAO.StartClassDate + " in", values, "startClassDate");
            	return this;
            }
        }
        public Criteria andStartClassDateNotIn(List<java.util.Date> values) {
        	if(values.size() == 1){
        		return andStartClassDateNotEqualTo(values.get(0));
        	}
        	else{
            	addCriterionForJDBCDate(IClassDefineDAO.StartClassDate + " not in", values, "startClassDate");
            	return this;
            }
        }
        
        public Criteria andStartClassDateIn(java.util.Date[] values) {
        	
        	if(values.length == 1){
        		return andStartClassDateEqualTo(values[0]);
        	}
        	else{
            	addCriterionForJDBCDate(IClassDefineDAO.StartClassDate + " in", Arrays.asList(values), "startClassDate");
            	return this;
            }
        }
        public Criteria andStartClassDateNotIn(java.util.Date[] values) {
        	if(values.length == 1){
        		return andStartClassDateNotEqualTo(values[0]);
        	}
        	else{
            	addCriterionForJDBCDate(IClassDefineDAO.StartClassDate + " not in", Arrays.asList(values), "startClassDate");
            	return this;
            }
        }
		
		public Criteria andStartClassDateIn(BaseQueryBean subQueryBean,
				IDataAccessInterface<?, ?> dao) {
			addCriterion(IClassDefineDAO.StartClassDate + " in ", subQueryBean, dao);
			return this;
		}
		
		public Criteria andStartClassDateNotIn(BaseQueryBean subQueryBean,
				IDataAccessInterface<?, ?> dao) {
			addCriterion(IClassDefineDAO.StartClassDate + " not in ", subQueryBean, dao);
			return this;
		}
        
                public Criteria andStartClassDateBetween(java.util.Date value1, java.util.Date value2) {
            addCriterionForJDBCDate(IClassDefineDAO.StartClassDate + " between", value1, value2, "startClassDate");
            return this;
        }
        
                public Criteria andStartClassDateNotBetween(java.util.Date value1, java.util.Date value2) {
            addCriterionForJDBCDate(IClassDefineDAO.StartClassDate + " not between", value1, value2, "startClassDate");
            return this;
        }
        
            	
    	    	
    	    	
    	        
                
        public Criteria andEndClassDateIsNull() {
            addCriterion(IClassDefineDAO.EndClassDate + " is null");
            return this;
        }
        public Criteria andEndClassDateIsNotNull() {
            addCriterion(IClassDefineDAO.EndClassDate + " is not null");
            return this;
        }
    
        public Criteria andEndClassDateIsNotEmpty() {        
            addCriterion(IClassDefineDAO.EndClassDate + " is not null AND " + IClassDefineDAO.EndClassDate + " <> ''");
            return this;
        }
    		
    	public Criteria andEndClassDateIsEmpty() {       
            addCriterion("(" + IClassDefineDAO.EndClassDate + " is null OR " + IClassDefineDAO.EndClassDate + " = '')");
            return this;
        }
        
                
                        
                        
                               public Criteria andEndClassDateEqualTo(java.util.Date value) {
        				
            addCriterionForJDBCDate(IClassDefineDAO.EndClassDate + " = ", value, "endClassDate");
            return this;
        }
        
        public Criteria andEndClassDateEqualToForeignKey(java.lang.String key) {
	    StringBuffer str = new StringBuffer(IClassDefineDAO.EndClassDate);
	    str.append(" = ").append(key);
            addForeignKeyCriterion(str.toString());
            return this;
        }
		
		public Criteria andEndClassDateEqualTo(BaseQueryBean subQueryBean,
				IDataAccessInterface<?, ?> dao) {
			addCriterion(IClassDefineDAO.EndClassDate + " = ", subQueryBean, dao);
			return this;
		}
                public Criteria andEndClassDateNotEqualTo(java.util.Date value) {
        	        
            addCriterionForJDBCDate(IClassDefineDAO.EndClassDate + " <>", value, "endClassDate");
            return this;
        }
               
        public Criteria andEndClassDateNotEqualToOrIsNull(java.util.Date value) {
        	        
            addCriterionForJDBCDate(IClassDefineDAO.EndClassDate + " is null OR " + IClassDefineDAO.EndClassDate + " <>", value, "endClassDate");
            return this;
        }
        
        public Criteria andEndClassDateNotEqualToForeignKey(java.lang.String key) {
	    StringBuffer str = new StringBuffer(IClassDefineDAO.EndClassDate);
	    str.append(" <> ").append(key);
            addForeignKeyCriterion(str.toString());
            return this;
        }
		
		public Criteria andEndClassDateNotEqualTo(BaseQueryBean subQueryBean,
				IDataAccessInterface<?, ?> dao) {
			addCriterion(IClassDefineDAO.EndClassDate + " <> ", subQueryBean, dao);
			return this;
		}
               public Criteria andEndClassDateGreaterThan(java.util.Date value) {
        				
            addCriterionForJDBCDate(IClassDefineDAO.EndClassDate + " >", value, "endClassDate");
            return this;
        }
        
        public Criteria andEndClassDateGreaterThanForeignKey(java.lang.String key) {
	    StringBuffer str = new StringBuffer(IClassDefineDAO.EndClassDate);
	    str.append(" > ").append(key);
            addForeignKeyCriterion(str.toString());
            return this;
        }
		
		public Criteria andEndClassDateGreaterThan(BaseQueryBean subQueryBean,
				IDataAccessInterface<?, ?> dao) {
			addCriterion(IClassDefineDAO.EndClassDate + " > ", subQueryBean, dao);
			return this;
		}
               public Criteria andEndClassDateGreaterThanOrEqualTo(java.util.Date value) {
        				
            addCriterionForJDBCDate(IClassDefineDAO.EndClassDate + " >=", value, "endClassDate");
            return this;
        }
        
        public Criteria andEndClassDateGreaterThanOrEqualToForeignKey(java.lang.String key) {
			StringBuffer str = new StringBuffer(IClassDefineDAO.EndClassDate);
			str.append(" >= ").append(key);
            addForeignKeyCriterion(str.toString());
            return this;
        }
		
		public Criteria andEndClassDateGreaterThanOrEqualTo(BaseQueryBean subQueryBean,
				IDataAccessInterface<?, ?> dao) {
			addCriterion(IClassDefineDAO.EndClassDate + " >= ", subQueryBean, dao);
			return this;
		}
        
                public Criteria andEndClassDateLessThan(java.util.Date value) {
        				
            addCriterionForJDBCDate(IClassDefineDAO.EndClassDate + " <", value, "endClassDate");
            return this;
        }
        
        public Criteria andEndClassDateLessThanForeignKey(java.lang.String key) {
			StringBuffer str = new StringBuffer(IClassDefineDAO.EndClassDate);
			str.append(" < ").append(key);
            addForeignKeyCriterion(str.toString());
            return this;
        }
		
		public Criteria andEndClassDateLessThan(BaseQueryBean subQueryBean,
				IDataAccessInterface<?, ?> dao) {
			addCriterion(IClassDefineDAO.EndClassDate + " < ", subQueryBean, dao);
			return this;
		}
        
                public Criteria andEndClassDateLessThanOrEqualTo(java.util.Date value) {
        				
            addCriterionForJDBCDate(IClassDefineDAO.EndClassDate + " <=", value, "endClassDate");
            return this;
        }
        
        public Criteria andEndClassDateLessThanOrEqualToForeignKey(java.lang.String key) {
			StringBuffer str = new StringBuffer(IClassDefineDAO.EndClassDate);
			str.append(" <= ").append(key);
            addForeignKeyCriterion(str.toString());
            return this;
        }
		
		public Criteria andEndClassDateLessThanOrEqualTo(BaseQueryBean subQueryBean,
				IDataAccessInterface<?, ?> dao) {
			addCriterion(IClassDefineDAO.EndClassDate + " <= ", subQueryBean, dao);
			return this;
		}
		
		        
                public Criteria andEndClassDateIn(List<java.util.Date> values) {
        	
        	if(values.size() == 1){
        		return andEndClassDateEqualTo(values.get(0));
        	}
        	else{
            	addCriterionForJDBCDate(IClassDefineDAO.EndClassDate + " in", values, "endClassDate");
            	return this;
            }
        }
        public Criteria andEndClassDateNotIn(List<java.util.Date> values) {
        	if(values.size() == 1){
        		return andEndClassDateNotEqualTo(values.get(0));
        	}
        	else{
            	addCriterionForJDBCDate(IClassDefineDAO.EndClassDate + " not in", values, "endClassDate");
            	return this;
            }
        }
        
        public Criteria andEndClassDateIn(java.util.Date[] values) {
        	
        	if(values.length == 1){
        		return andEndClassDateEqualTo(values[0]);
        	}
        	else{
            	addCriterionForJDBCDate(IClassDefineDAO.EndClassDate + " in", Arrays.asList(values), "endClassDate");
            	return this;
            }
        }
        public Criteria andEndClassDateNotIn(java.util.Date[] values) {
        	if(values.length == 1){
        		return andEndClassDateNotEqualTo(values[0]);
        	}
        	else{
            	addCriterionForJDBCDate(IClassDefineDAO.EndClassDate + " not in", Arrays.asList(values), "endClassDate");
            	return this;
            }
        }
		
		public Criteria andEndClassDateIn(BaseQueryBean subQueryBean,
				IDataAccessInterface<?, ?> dao) {
			addCriterion(IClassDefineDAO.EndClassDate + " in ", subQueryBean, dao);
			return this;
		}
		
		public Criteria andEndClassDateNotIn(BaseQueryBean subQueryBean,
				IDataAccessInterface<?, ?> dao) {
			addCriterion(IClassDefineDAO.EndClassDate + " not in ", subQueryBean, dao);
			return this;
		}
        
                public Criteria andEndClassDateBetween(java.util.Date value1, java.util.Date value2) {
            addCriterionForJDBCDate(IClassDefineDAO.EndClassDate + " between", value1, value2, "endClassDate");
            return this;
        }
        
                public Criteria andEndClassDateNotBetween(java.util.Date value1, java.util.Date value2) {
            addCriterionForJDBCDate(IClassDefineDAO.EndClassDate + " not between", value1, value2, "endClassDate");
            return this;
        }
        
            	
    	    	
    	    	
    	        
                
        public Criteria andStudentClassHourIsNull() {
            addCriterion(IClassDefineDAO.StudentClassHour + " is null");
            return this;
        }
        public Criteria andStudentClassHourIsNotNull() {
            addCriterion(IClassDefineDAO.StudentClassHour + " is not null");
            return this;
        }
    
        public Criteria andStudentClassHourIsNotEmpty() {        
            addCriterion(IClassDefineDAO.StudentClassHour + " is not null AND " + IClassDefineDAO.StudentClassHour + " <> ''");
            return this;
        }
    		
    	public Criteria andStudentClassHourIsEmpty() {       
            addCriterion("(" + IClassDefineDAO.StudentClassHour + " is null OR " + IClassDefineDAO.StudentClassHour + " = '')");
            return this;
        }
        
                
                        
                        
                                
        public Criteria andStudentClassHourEqualTo(long value) {
        	return andStudentClassHourEqualTo(Long.valueOf(value));
        }
               public Criteria andStudentClassHourEqualTo(java.lang.Long value) {
        				
            addCriterion(IClassDefineDAO.StudentClassHour + " = ", value, "studentClassHour");
            return this;
        }
        
        public Criteria andStudentClassHourEqualToForeignKey(java.lang.String key) {
	    StringBuffer str = new StringBuffer(IClassDefineDAO.StudentClassHour);
	    str.append(" = ").append(key);
            addForeignKeyCriterion(str.toString());
            return this;
        }
		
		public Criteria andStudentClassHourEqualTo(BaseQueryBean subQueryBean,
				IDataAccessInterface<?, ?> dao) {
			addCriterion(IClassDefineDAO.StudentClassHour + " = ", subQueryBean, dao);
			return this;
		}
                
        public Criteria andStudentClassHourNotEqualTo(long value) {
        	return andStudentClassHourNotEqualTo(Long.valueOf(value));
        }
                public Criteria andStudentClassHourNotEqualTo(java.lang.Long value) {
        	        
            addCriterion(IClassDefineDAO.StudentClassHour + " <>", value, "studentClassHour");
            return this;
        }
               
        public Criteria andStudentClassHourNotEqualToOrIsNull(long value) {
        	return andStudentClassHourNotEqualToOrIsNull(Long.valueOf(value));
        }
                
        public Criteria andStudentClassHourNotEqualToOrIsNull(java.lang.Long value) {
        	        
            addCriterion(IClassDefineDAO.StudentClassHour + " is null OR " + IClassDefineDAO.StudentClassHour + " <>", value, "studentClassHour");
            return this;
        }
        
        public Criteria andStudentClassHourNotEqualToForeignKey(java.lang.String key) {
	    StringBuffer str = new StringBuffer(IClassDefineDAO.StudentClassHour);
	    str.append(" <> ").append(key);
            addForeignKeyCriterion(str.toString());
            return this;
        }
		
		public Criteria andStudentClassHourNotEqualTo(BaseQueryBean subQueryBean,
				IDataAccessInterface<?, ?> dao) {
			addCriterion(IClassDefineDAO.StudentClassHour + " <> ", subQueryBean, dao);
			return this;
		}
               
        public Criteria andStudentClassHourGreaterThan(long value) {
        	return andStudentClassHourGreaterThan(Long.valueOf(value));
        }
                public Criteria andStudentClassHourGreaterThan(java.lang.Long value) {
        				
            addCriterion(IClassDefineDAO.StudentClassHour + " >", value, "studentClassHour");
            return this;
        }
        
        public Criteria andStudentClassHourGreaterThanForeignKey(java.lang.String key) {
	    StringBuffer str = new StringBuffer(IClassDefineDAO.StudentClassHour);
	    str.append(" > ").append(key);
            addForeignKeyCriterion(str.toString());
            return this;
        }
		
		public Criteria andStudentClassHourGreaterThan(BaseQueryBean subQueryBean,
				IDataAccessInterface<?, ?> dao) {
			addCriterion(IClassDefineDAO.StudentClassHour + " > ", subQueryBean, dao);
			return this;
		}
               
        public Criteria andStudentClassHourGreaterThanOrEqualTo(long value) {
        	return andStudentClassHourGreaterThanOrEqualTo(Long.valueOf(value));
        }
                public Criteria andStudentClassHourGreaterThanOrEqualTo(java.lang.Long value) {
        				
            addCriterion(IClassDefineDAO.StudentClassHour + " >=", value, "studentClassHour");
            return this;
        }
        
        public Criteria andStudentClassHourGreaterThanOrEqualToForeignKey(java.lang.String key) {
			StringBuffer str = new StringBuffer(IClassDefineDAO.StudentClassHour);
			str.append(" >= ").append(key);
            addForeignKeyCriterion(str.toString());
            return this;
        }
		
		public Criteria andStudentClassHourGreaterThanOrEqualTo(BaseQueryBean subQueryBean,
				IDataAccessInterface<?, ?> dao) {
			addCriterion(IClassDefineDAO.StudentClassHour + " >= ", subQueryBean, dao);
			return this;
		}
        
                
        public Criteria andStudentClassHourLessThan(long value) {
        	return andStudentClassHourLessThan(Long.valueOf(value));
        }
                public Criteria andStudentClassHourLessThan(java.lang.Long value) {
        				
            addCriterion(IClassDefineDAO.StudentClassHour + " <", value, "studentClassHour");
            return this;
        }
        
        public Criteria andStudentClassHourLessThanForeignKey(java.lang.String key) {
			StringBuffer str = new StringBuffer(IClassDefineDAO.StudentClassHour);
			str.append(" < ").append(key);
            addForeignKeyCriterion(str.toString());
            return this;
        }
		
		public Criteria andStudentClassHourLessThan(BaseQueryBean subQueryBean,
				IDataAccessInterface<?, ?> dao) {
			addCriterion(IClassDefineDAO.StudentClassHour + " < ", subQueryBean, dao);
			return this;
		}
        
                
        public Criteria andStudentClassHourLessThanOrEqualTo(long value) {
        	return andStudentClassHourLessThanOrEqualTo(Long.valueOf(value));
        }
                public Criteria andStudentClassHourLessThanOrEqualTo(java.lang.Long value) {
        				
            addCriterion(IClassDefineDAO.StudentClassHour + " <=", value, "studentClassHour");
            return this;
        }
        
        public Criteria andStudentClassHourLessThanOrEqualToForeignKey(java.lang.String key) {
			StringBuffer str = new StringBuffer(IClassDefineDAO.StudentClassHour);
			str.append(" <= ").append(key);
            addForeignKeyCriterion(str.toString());
            return this;
        }
		
		public Criteria andStudentClassHourLessThanOrEqualTo(BaseQueryBean subQueryBean,
				IDataAccessInterface<?, ?> dao) {
			addCriterion(IClassDefineDAO.StudentClassHour + " <= ", subQueryBean, dao);
			return this;
		}
		
		        
                
        public Criteria andStudentClassHourIn(long[] values) {
        	if(values.length == 1){
        		return andStudentClassHourEqualTo((java.lang.Long)values[0]);
        	}
        	else{
            	addCriterion(IClassDefineDAO.StudentClassHour + " in", values, "studentClassHour");
            	return this;
            }
        }
        
        public Criteria andStudentClassHourNotIn(long[] values) {
        	if(values.length == 1){
        		return andStudentClassHourNotEqualTo((java.lang.Long)values[0]);
        	}
        	else{
            	addCriterion(IClassDefineDAO.StudentClassHour + " not in", values, "studentClassHour");
            	return this;
            }
        }
        
                public Criteria andStudentClassHourIn(List<java.lang.Long> values) {
        	
        	if(values.size() == 1){
        		return andStudentClassHourEqualTo(values.get(0));
        	}
        	else{
            	addCriterion(IClassDefineDAO.StudentClassHour + " in", values, "studentClassHour");
            	return this;
            }
        }
        public Criteria andStudentClassHourNotIn(List<java.lang.Long> values) {
        	if(values.size() == 1){
        		return andStudentClassHourNotEqualTo(values.get(0));
        	}
        	else{
            	addCriterion(IClassDefineDAO.StudentClassHour + " not in", values, "studentClassHour");
            	return this;
            }
        }
        
        public Criteria andStudentClassHourIn(java.lang.Long[] values) {
        	
        	if(values.length == 1){
        		return andStudentClassHourEqualTo(values[0]);
        	}
        	else{
            	addCriterion(IClassDefineDAO.StudentClassHour + " in", Arrays.asList(values), "studentClassHour");
            	return this;
            }
        }
        public Criteria andStudentClassHourNotIn(java.lang.Long[] values) {
        	if(values.length == 1){
        		return andStudentClassHourNotEqualTo(values[0]);
        	}
        	else{
            	addCriterion(IClassDefineDAO.StudentClassHour + " not in", Arrays.asList(values), "studentClassHour");
            	return this;
            }
        }
		
		public Criteria andStudentClassHourIn(BaseQueryBean subQueryBean,
				IDataAccessInterface<?, ?> dao) {
			addCriterion(IClassDefineDAO.StudentClassHour + " in ", subQueryBean, dao);
			return this;
		}
		
		public Criteria andStudentClassHourNotIn(BaseQueryBean subQueryBean,
				IDataAccessInterface<?, ?> dao) {
			addCriterion(IClassDefineDAO.StudentClassHour + " not in ", subQueryBean, dao);
			return this;
		}
        
                
        public Criteria andStudentClassHourBetween(long value1,long value2) {
        	addCriterion(IClassDefineDAO.StudentClassHour + " between", value1, value2, "studentClassHour");
            return this;
        }
                public Criteria andStudentClassHourBetween(java.lang.Long value1, java.lang.Long value2) {
            addCriterion(IClassDefineDAO.StudentClassHour + " between", value1, value2, "studentClassHour");
            return this;
        }
        
                
        public Criteria andStudentClassHourNotBetween(long value1,long value2) {
        	addCriterion(IClassDefineDAO.StudentClassHour + " not between", value1, value2, "studentClassHour");
            return this;
        }
                public Criteria andStudentClassHourNotBetween(java.lang.Long value1, java.lang.Long value2) {
            addCriterion(IClassDefineDAO.StudentClassHour + " not between", value1, value2, "studentClassHour");
            return this;
        }
        
            	
    	    	
    	    	
    	        
                
        public Criteria andTeacherClassHourIsNull() {
            addCriterion(IClassDefineDAO.TeacherClassHour + " is null");
            return this;
        }
        public Criteria andTeacherClassHourIsNotNull() {
            addCriterion(IClassDefineDAO.TeacherClassHour + " is not null");
            return this;
        }
    
        public Criteria andTeacherClassHourIsNotEmpty() {        
            addCriterion(IClassDefineDAO.TeacherClassHour + " is not null AND " + IClassDefineDAO.TeacherClassHour + " <> ''");
            return this;
        }
    		
    	public Criteria andTeacherClassHourIsEmpty() {       
            addCriterion("(" + IClassDefineDAO.TeacherClassHour + " is null OR " + IClassDefineDAO.TeacherClassHour + " = '')");
            return this;
        }
        
                
                        
                        
                                
        public Criteria andTeacherClassHourEqualTo(long value) {
        	return andTeacherClassHourEqualTo(Long.valueOf(value));
        }
               public Criteria andTeacherClassHourEqualTo(java.lang.Long value) {
        				
            addCriterion(IClassDefineDAO.TeacherClassHour + " = ", value, "teacherClassHour");
            return this;
        }
        
        public Criteria andTeacherClassHourEqualToForeignKey(java.lang.String key) {
	    StringBuffer str = new StringBuffer(IClassDefineDAO.TeacherClassHour);
	    str.append(" = ").append(key);
            addForeignKeyCriterion(str.toString());
            return this;
        }
		
		public Criteria andTeacherClassHourEqualTo(BaseQueryBean subQueryBean,
				IDataAccessInterface<?, ?> dao) {
			addCriterion(IClassDefineDAO.TeacherClassHour + " = ", subQueryBean, dao);
			return this;
		}
                
        public Criteria andTeacherClassHourNotEqualTo(long value) {
        	return andTeacherClassHourNotEqualTo(Long.valueOf(value));
        }
                public Criteria andTeacherClassHourNotEqualTo(java.lang.Long value) {
        	        
            addCriterion(IClassDefineDAO.TeacherClassHour + " <>", value, "teacherClassHour");
            return this;
        }
               
        public Criteria andTeacherClassHourNotEqualToOrIsNull(long value) {
        	return andTeacherClassHourNotEqualToOrIsNull(Long.valueOf(value));
        }
                
        public Criteria andTeacherClassHourNotEqualToOrIsNull(java.lang.Long value) {
        	        
            addCriterion(IClassDefineDAO.TeacherClassHour + " is null OR " + IClassDefineDAO.TeacherClassHour + " <>", value, "teacherClassHour");
            return this;
        }
        
        public Criteria andTeacherClassHourNotEqualToForeignKey(java.lang.String key) {
	    StringBuffer str = new StringBuffer(IClassDefineDAO.TeacherClassHour);
	    str.append(" <> ").append(key);
            addForeignKeyCriterion(str.toString());
            return this;
        }
		
		public Criteria andTeacherClassHourNotEqualTo(BaseQueryBean subQueryBean,
				IDataAccessInterface<?, ?> dao) {
			addCriterion(IClassDefineDAO.TeacherClassHour + " <> ", subQueryBean, dao);
			return this;
		}
               
        public Criteria andTeacherClassHourGreaterThan(long value) {
        	return andTeacherClassHourGreaterThan(Long.valueOf(value));
        }
                public Criteria andTeacherClassHourGreaterThan(java.lang.Long value) {
        				
            addCriterion(IClassDefineDAO.TeacherClassHour + " >", value, "teacherClassHour");
            return this;
        }
        
        public Criteria andTeacherClassHourGreaterThanForeignKey(java.lang.String key) {
	    StringBuffer str = new StringBuffer(IClassDefineDAO.TeacherClassHour);
	    str.append(" > ").append(key);
            addForeignKeyCriterion(str.toString());
            return this;
        }
		
		public Criteria andTeacherClassHourGreaterThan(BaseQueryBean subQueryBean,
				IDataAccessInterface<?, ?> dao) {
			addCriterion(IClassDefineDAO.TeacherClassHour + " > ", subQueryBean, dao);
			return this;
		}
               
        public Criteria andTeacherClassHourGreaterThanOrEqualTo(long value) {
        	return andTeacherClassHourGreaterThanOrEqualTo(Long.valueOf(value));
        }
                public Criteria andTeacherClassHourGreaterThanOrEqualTo(java.lang.Long value) {
        				
            addCriterion(IClassDefineDAO.TeacherClassHour + " >=", value, "teacherClassHour");
            return this;
        }
        
        public Criteria andTeacherClassHourGreaterThanOrEqualToForeignKey(java.lang.String key) {
			StringBuffer str = new StringBuffer(IClassDefineDAO.TeacherClassHour);
			str.append(" >= ").append(key);
            addForeignKeyCriterion(str.toString());
            return this;
        }
		
		public Criteria andTeacherClassHourGreaterThanOrEqualTo(BaseQueryBean subQueryBean,
				IDataAccessInterface<?, ?> dao) {
			addCriterion(IClassDefineDAO.TeacherClassHour + " >= ", subQueryBean, dao);
			return this;
		}
        
                
        public Criteria andTeacherClassHourLessThan(long value) {
        	return andTeacherClassHourLessThan(Long.valueOf(value));
        }
                public Criteria andTeacherClassHourLessThan(java.lang.Long value) {
        				
            addCriterion(IClassDefineDAO.TeacherClassHour + " <", value, "teacherClassHour");
            return this;
        }
        
        public Criteria andTeacherClassHourLessThanForeignKey(java.lang.String key) {
			StringBuffer str = new StringBuffer(IClassDefineDAO.TeacherClassHour);
			str.append(" < ").append(key);
            addForeignKeyCriterion(str.toString());
            return this;
        }
		
		public Criteria andTeacherClassHourLessThan(BaseQueryBean subQueryBean,
				IDataAccessInterface<?, ?> dao) {
			addCriterion(IClassDefineDAO.TeacherClassHour + " < ", subQueryBean, dao);
			return this;
		}
        
                
        public Criteria andTeacherClassHourLessThanOrEqualTo(long value) {
        	return andTeacherClassHourLessThanOrEqualTo(Long.valueOf(value));
        }
                public Criteria andTeacherClassHourLessThanOrEqualTo(java.lang.Long value) {
        				
            addCriterion(IClassDefineDAO.TeacherClassHour + " <=", value, "teacherClassHour");
            return this;
        }
        
        public Criteria andTeacherClassHourLessThanOrEqualToForeignKey(java.lang.String key) {
			StringBuffer str = new StringBuffer(IClassDefineDAO.TeacherClassHour);
			str.append(" <= ").append(key);
            addForeignKeyCriterion(str.toString());
            return this;
        }
		
		public Criteria andTeacherClassHourLessThanOrEqualTo(BaseQueryBean subQueryBean,
				IDataAccessInterface<?, ?> dao) {
			addCriterion(IClassDefineDAO.TeacherClassHour + " <= ", subQueryBean, dao);
			return this;
		}
		
		        
                
        public Criteria andTeacherClassHourIn(long[] values) {
        	if(values.length == 1){
        		return andTeacherClassHourEqualTo((java.lang.Long)values[0]);
        	}
        	else{
            	addCriterion(IClassDefineDAO.TeacherClassHour + " in", values, "teacherClassHour");
            	return this;
            }
        }
        
        public Criteria andTeacherClassHourNotIn(long[] values) {
        	if(values.length == 1){
        		return andTeacherClassHourNotEqualTo((java.lang.Long)values[0]);
        	}
        	else{
            	addCriterion(IClassDefineDAO.TeacherClassHour + " not in", values, "teacherClassHour");
            	return this;
            }
        }
        
                public Criteria andTeacherClassHourIn(List<java.lang.Long> values) {
        	
        	if(values.size() == 1){
        		return andTeacherClassHourEqualTo(values.get(0));
        	}
        	else{
            	addCriterion(IClassDefineDAO.TeacherClassHour + " in", values, "teacherClassHour");
            	return this;
            }
        }
        public Criteria andTeacherClassHourNotIn(List<java.lang.Long> values) {
        	if(values.size() == 1){
        		return andTeacherClassHourNotEqualTo(values.get(0));
        	}
        	else{
            	addCriterion(IClassDefineDAO.TeacherClassHour + " not in", values, "teacherClassHour");
            	return this;
            }
        }
        
        public Criteria andTeacherClassHourIn(java.lang.Long[] values) {
        	
        	if(values.length == 1){
        		return andTeacherClassHourEqualTo(values[0]);
        	}
        	else{
            	addCriterion(IClassDefineDAO.TeacherClassHour + " in", Arrays.asList(values), "teacherClassHour");
            	return this;
            }
        }
        public Criteria andTeacherClassHourNotIn(java.lang.Long[] values) {
        	if(values.length == 1){
        		return andTeacherClassHourNotEqualTo(values[0]);
        	}
        	else{
            	addCriterion(IClassDefineDAO.TeacherClassHour + " not in", Arrays.asList(values), "teacherClassHour");
            	return this;
            }
        }
		
		public Criteria andTeacherClassHourIn(BaseQueryBean subQueryBean,
				IDataAccessInterface<?, ?> dao) {
			addCriterion(IClassDefineDAO.TeacherClassHour + " in ", subQueryBean, dao);
			return this;
		}
		
		public Criteria andTeacherClassHourNotIn(BaseQueryBean subQueryBean,
				IDataAccessInterface<?, ?> dao) {
			addCriterion(IClassDefineDAO.TeacherClassHour + " not in ", subQueryBean, dao);
			return this;
		}
        
                
        public Criteria andTeacherClassHourBetween(long value1,long value2) {
        	addCriterion(IClassDefineDAO.TeacherClassHour + " between", value1, value2, "teacherClassHour");
            return this;
        }
                public Criteria andTeacherClassHourBetween(java.lang.Long value1, java.lang.Long value2) {
            addCriterion(IClassDefineDAO.TeacherClassHour + " between", value1, value2, "teacherClassHour");
            return this;
        }
        
                
        public Criteria andTeacherClassHourNotBetween(long value1,long value2) {
        	addCriterion(IClassDefineDAO.TeacherClassHour + " not between", value1, value2, "teacherClassHour");
            return this;
        }
                public Criteria andTeacherClassHourNotBetween(java.lang.Long value1, java.lang.Long value2) {
            addCriterion(IClassDefineDAO.TeacherClassHour + " not between", value1, value2, "teacherClassHour");
            return this;
        }
        
            	
    	    	
    	    	
    	        
                
        public Criteria andDeleteFlagIsNull() {
            addCriterion(IClassDefineDAO.DeleteFlag + " is null");
            return this;
        }
        public Criteria andDeleteFlagIsNotNull() {
            addCriterion(IClassDefineDAO.DeleteFlag + " is not null");
            return this;
        }
    
        public Criteria andDeleteFlagIsNotEmpty() {        
            addCriterion(IClassDefineDAO.DeleteFlag + " is not null AND " + IClassDefineDAO.DeleteFlag + " <> ''");
            return this;
        }
    		
    	public Criteria andDeleteFlagIsEmpty() {       
            addCriterion("(" + IClassDefineDAO.DeleteFlag + " is null OR " + IClassDefineDAO.DeleteFlag + " = '')");
            return this;
        }
        
                
                        
                        
                                
        public Criteria andDeleteFlagEqualTo(int value) {
        	return andDeleteFlagEqualTo(Integer.valueOf(value));
        }
               public Criteria andDeleteFlagEqualTo(java.lang.Integer value) {
        				
            addCriterion(IClassDefineDAO.DeleteFlag + " = ", value, "deleteFlag");
            return this;
        }
        
        public Criteria andDeleteFlagEqualToForeignKey(java.lang.String key) {
	    StringBuffer str = new StringBuffer(IClassDefineDAO.DeleteFlag);
	    str.append(" = ").append(key);
            addForeignKeyCriterion(str.toString());
            return this;
        }
		
		public Criteria andDeleteFlagEqualTo(BaseQueryBean subQueryBean,
				IDataAccessInterface<?, ?> dao) {
			addCriterion(IClassDefineDAO.DeleteFlag + " = ", subQueryBean, dao);
			return this;
		}
                
        public Criteria andDeleteFlagNotEqualTo(int value) {
        	return andDeleteFlagNotEqualTo(Integer.valueOf(value));
        }
                public Criteria andDeleteFlagNotEqualTo(java.lang.Integer value) {
        	        
            addCriterion(IClassDefineDAO.DeleteFlag + " <>", value, "deleteFlag");
            return this;
        }
               
        public Criteria andDeleteFlagNotEqualToOrIsNull(int value) {
        	return andDeleteFlagNotEqualToOrIsNull(Integer.valueOf(value));
        }
                
        public Criteria andDeleteFlagNotEqualToOrIsNull(java.lang.Integer value) {
        	        
            addCriterion(IClassDefineDAO.DeleteFlag + " is null OR " + IClassDefineDAO.DeleteFlag + " <>", value, "deleteFlag");
            return this;
        }
        
        public Criteria andDeleteFlagNotEqualToForeignKey(java.lang.String key) {
	    StringBuffer str = new StringBuffer(IClassDefineDAO.DeleteFlag);
	    str.append(" <> ").append(key);
            addForeignKeyCriterion(str.toString());
            return this;
        }
		
		public Criteria andDeleteFlagNotEqualTo(BaseQueryBean subQueryBean,
				IDataAccessInterface<?, ?> dao) {
			addCriterion(IClassDefineDAO.DeleteFlag + " <> ", subQueryBean, dao);
			return this;
		}
               
        public Criteria andDeleteFlagGreaterThan(int value) {
        	return andDeleteFlagGreaterThan(Integer.valueOf(value));
        }
                public Criteria andDeleteFlagGreaterThan(java.lang.Integer value) {
        				
            addCriterion(IClassDefineDAO.DeleteFlag + " >", value, "deleteFlag");
            return this;
        }
        
        public Criteria andDeleteFlagGreaterThanForeignKey(java.lang.String key) {
	    StringBuffer str = new StringBuffer(IClassDefineDAO.DeleteFlag);
	    str.append(" > ").append(key);
            addForeignKeyCriterion(str.toString());
            return this;
        }
		
		public Criteria andDeleteFlagGreaterThan(BaseQueryBean subQueryBean,
				IDataAccessInterface<?, ?> dao) {
			addCriterion(IClassDefineDAO.DeleteFlag + " > ", subQueryBean, dao);
			return this;
		}
               
        public Criteria andDeleteFlagGreaterThanOrEqualTo(int value) {
        	return andDeleteFlagGreaterThanOrEqualTo(Integer.valueOf(value));
        }
                public Criteria andDeleteFlagGreaterThanOrEqualTo(java.lang.Integer value) {
        				
            addCriterion(IClassDefineDAO.DeleteFlag + " >=", value, "deleteFlag");
            return this;
        }
        
        public Criteria andDeleteFlagGreaterThanOrEqualToForeignKey(java.lang.String key) {
			StringBuffer str = new StringBuffer(IClassDefineDAO.DeleteFlag);
			str.append(" >= ").append(key);
            addForeignKeyCriterion(str.toString());
            return this;
        }
		
		public Criteria andDeleteFlagGreaterThanOrEqualTo(BaseQueryBean subQueryBean,
				IDataAccessInterface<?, ?> dao) {
			addCriterion(IClassDefineDAO.DeleteFlag + " >= ", subQueryBean, dao);
			return this;
		}
        
                
        public Criteria andDeleteFlagLessThan(int value) {
        	return andDeleteFlagLessThan(Integer.valueOf(value));
        }
                public Criteria andDeleteFlagLessThan(java.lang.Integer value) {
        				
            addCriterion(IClassDefineDAO.DeleteFlag + " <", value, "deleteFlag");
            return this;
        }
        
        public Criteria andDeleteFlagLessThanForeignKey(java.lang.String key) {
			StringBuffer str = new StringBuffer(IClassDefineDAO.DeleteFlag);
			str.append(" < ").append(key);
            addForeignKeyCriterion(str.toString());
            return this;
        }
		
		public Criteria andDeleteFlagLessThan(BaseQueryBean subQueryBean,
				IDataAccessInterface<?, ?> dao) {
			addCriterion(IClassDefineDAO.DeleteFlag + " < ", subQueryBean, dao);
			return this;
		}
        
                
        public Criteria andDeleteFlagLessThanOrEqualTo(int value) {
        	return andDeleteFlagLessThanOrEqualTo(Integer.valueOf(value));
        }
                public Criteria andDeleteFlagLessThanOrEqualTo(java.lang.Integer value) {
        				
            addCriterion(IClassDefineDAO.DeleteFlag + " <=", value, "deleteFlag");
            return this;
        }
        
        public Criteria andDeleteFlagLessThanOrEqualToForeignKey(java.lang.String key) {
			StringBuffer str = new StringBuffer(IClassDefineDAO.DeleteFlag);
			str.append(" <= ").append(key);
            addForeignKeyCriterion(str.toString());
            return this;
        }
		
		public Criteria andDeleteFlagLessThanOrEqualTo(BaseQueryBean subQueryBean,
				IDataAccessInterface<?, ?> dao) {
			addCriterion(IClassDefineDAO.DeleteFlag + " <= ", subQueryBean, dao);
			return this;
		}
		
		        
                
        public Criteria andDeleteFlagIn(int[] values) {
        	if(values.length == 1){
        		return andDeleteFlagEqualTo((java.lang.Integer)values[0]);
        	}
        	else{
            	addCriterion(IClassDefineDAO.DeleteFlag + " in", values, "deleteFlag");
            	return this;
            }
        }
        
        public Criteria andDeleteFlagNotIn(int[] values) {
        	if(values.length == 1){
        		return andDeleteFlagNotEqualTo((java.lang.Integer)values[0]);
        	}
        	else{
            	addCriterion(IClassDefineDAO.DeleteFlag + " not in", values, "deleteFlag");
            	return this;
            }
        }
        
                public Criteria andDeleteFlagIn(List<java.lang.Integer> values) {
        	
        	if(values.size() == 1){
        		return andDeleteFlagEqualTo(values.get(0));
        	}
        	else{
            	addCriterion(IClassDefineDAO.DeleteFlag + " in", values, "deleteFlag");
            	return this;
            }
        }
        public Criteria andDeleteFlagNotIn(List<java.lang.Integer> values) {
        	if(values.size() == 1){
        		return andDeleteFlagNotEqualTo(values.get(0));
        	}
        	else{
            	addCriterion(IClassDefineDAO.DeleteFlag + " not in", values, "deleteFlag");
            	return this;
            }
        }
        
        public Criteria andDeleteFlagIn(java.lang.Integer[] values) {
        	
        	if(values.length == 1){
        		return andDeleteFlagEqualTo(values[0]);
        	}
        	else{
            	addCriterion(IClassDefineDAO.DeleteFlag + " in", Arrays.asList(values), "deleteFlag");
            	return this;
            }
        }
        public Criteria andDeleteFlagNotIn(java.lang.Integer[] values) {
        	if(values.length == 1){
        		return andDeleteFlagNotEqualTo(values[0]);
        	}
        	else{
            	addCriterion(IClassDefineDAO.DeleteFlag + " not in", Arrays.asList(values), "deleteFlag");
            	return this;
            }
        }
		
		public Criteria andDeleteFlagIn(BaseQueryBean subQueryBean,
				IDataAccessInterface<?, ?> dao) {
			addCriterion(IClassDefineDAO.DeleteFlag + " in ", subQueryBean, dao);
			return this;
		}
		
		public Criteria andDeleteFlagNotIn(BaseQueryBean subQueryBean,
				IDataAccessInterface<?, ?> dao) {
			addCriterion(IClassDefineDAO.DeleteFlag + " not in ", subQueryBean, dao);
			return this;
		}
        
                
        public Criteria andDeleteFlagBetween(int value1,int value2) {
        	addCriterion(IClassDefineDAO.DeleteFlag + " between", value1, value2, "deleteFlag");
            return this;
        }
                public Criteria andDeleteFlagBetween(java.lang.Integer value1, java.lang.Integer value2) {
            addCriterion(IClassDefineDAO.DeleteFlag + " between", value1, value2, "deleteFlag");
            return this;
        }
        
                
        public Criteria andDeleteFlagNotBetween(int value1,int value2) {
        	addCriterion(IClassDefineDAO.DeleteFlag + " not between", value1, value2, "deleteFlag");
            return this;
        }
                public Criteria andDeleteFlagNotBetween(java.lang.Integer value1, java.lang.Integer value2) {
            addCriterion(IClassDefineDAO.DeleteFlag + " not between", value1, value2, "deleteFlag");
            return this;
        }
        
            	
    	    	
    	    	
    	        
                
        public Criteria andStatusIsNull() {
            addCriterion(IClassDefineDAO.Status + " is null");
            return this;
        }
        public Criteria andStatusIsNotNull() {
            addCriterion(IClassDefineDAO.Status + " is not null");
            return this;
        }
    
        public Criteria andStatusIsNotEmpty() {        
            addCriterion(IClassDefineDAO.Status + " is not null AND " + IClassDefineDAO.Status + " <> ''");
            return this;
        }
    		
    	public Criteria andStatusIsEmpty() {       
            addCriterion("(" + IClassDefineDAO.Status + " is null OR " + IClassDefineDAO.Status + " = '')");
            return this;
        }
        
                
                        
                        
                               public Criteria andStatusEqualTo(String value) {
        				
            addCriterion(IClassDefineDAO.Status + " = ", value, "status");
            return this;
        }
        
        public Criteria andStatusEqualToForeignKey(java.lang.String key) {
	    StringBuffer str = new StringBuffer(IClassDefineDAO.Status);
	    str.append(" = ").append(key);
            addForeignKeyCriterion(str.toString());
            return this;
        }
		
		public Criteria andStatusEqualTo(BaseQueryBean subQueryBean,
				IDataAccessInterface<?, ?> dao) {
			addCriterion(IClassDefineDAO.Status + " = ", subQueryBean, dao);
			return this;
		}
                public Criteria andStatusNotEqualTo(String value) {
        	        
            addCriterion(IClassDefineDAO.Status + " <>", value, "status");
            return this;
        }
               
        public Criteria andStatusNotEqualToOrIsNull(String value) {
        	        
            addCriterion(IClassDefineDAO.Status + " is null OR " + IClassDefineDAO.Status + " <>", value, "status");
            return this;
        }
        
        public Criteria andStatusNotEqualToForeignKey(java.lang.String key) {
	    StringBuffer str = new StringBuffer(IClassDefineDAO.Status);
	    str.append(" <> ").append(key);
            addForeignKeyCriterion(str.toString());
            return this;
        }
		
		public Criteria andStatusNotEqualTo(BaseQueryBean subQueryBean,
				IDataAccessInterface<?, ?> dao) {
			addCriterion(IClassDefineDAO.Status + " <> ", subQueryBean, dao);
			return this;
		}
               public Criteria andStatusGreaterThan(String value) {
        				
            addCriterion(IClassDefineDAO.Status + " >", value, "status");
            return this;
        }
        
        public Criteria andStatusGreaterThanForeignKey(java.lang.String key) {
	    StringBuffer str = new StringBuffer(IClassDefineDAO.Status);
	    str.append(" > ").append(key);
            addForeignKeyCriterion(str.toString());
            return this;
        }
		
		public Criteria andStatusGreaterThan(BaseQueryBean subQueryBean,
				IDataAccessInterface<?, ?> dao) {
			addCriterion(IClassDefineDAO.Status + " > ", subQueryBean, dao);
			return this;
		}
               public Criteria andStatusGreaterThanOrEqualTo(String value) {
        				
            addCriterion(IClassDefineDAO.Status + " >=", value, "status");
            return this;
        }
        
        public Criteria andStatusGreaterThanOrEqualToForeignKey(java.lang.String key) {
			StringBuffer str = new StringBuffer(IClassDefineDAO.Status);
			str.append(" >= ").append(key);
            addForeignKeyCriterion(str.toString());
            return this;
        }
		
		public Criteria andStatusGreaterThanOrEqualTo(BaseQueryBean subQueryBean,
				IDataAccessInterface<?, ?> dao) {
			addCriterion(IClassDefineDAO.Status + " >= ", subQueryBean, dao);
			return this;
		}
        
                public Criteria andStatusLessThan(String value) {
        				
            addCriterion(IClassDefineDAO.Status + " <", value, "status");
            return this;
        }
        
        public Criteria andStatusLessThanForeignKey(java.lang.String key) {
			StringBuffer str = new StringBuffer(IClassDefineDAO.Status);
			str.append(" < ").append(key);
            addForeignKeyCriterion(str.toString());
            return this;
        }
		
		public Criteria andStatusLessThan(BaseQueryBean subQueryBean,
				IDataAccessInterface<?, ?> dao) {
			addCriterion(IClassDefineDAO.Status + " < ", subQueryBean, dao);
			return this;
		}
        
                public Criteria andStatusLessThanOrEqualTo(String value) {
        				
            addCriterion(IClassDefineDAO.Status + " <=", value, "status");
            return this;
        }
        
        public Criteria andStatusLessThanOrEqualToForeignKey(java.lang.String key) {
			StringBuffer str = new StringBuffer(IClassDefineDAO.Status);
			str.append(" <= ").append(key);
            addForeignKeyCriterion(str.toString());
            return this;
        }
		
		public Criteria andStatusLessThanOrEqualTo(BaseQueryBean subQueryBean,
				IDataAccessInterface<?, ?> dao) {
			addCriterion(IClassDefineDAO.Status + " <= ", subQueryBean, dao);
			return this;
		}
		
				
        public Criteria andStatusLike(String value) {
        	StringBuffer buffer = new StringBuffer("%");
        	buffer.append(value);
        	buffer.append("%");
            addCriterion(IClassDefineDAO.Status + " like", buffer.toString(), "status");
            return this;
        }
        public Criteria andStatusNotLike(String value) {
            StringBuffer buffer = new StringBuffer("%");
        	buffer.append(value);
        	buffer.append("%");
            addCriterion(IClassDefineDAO.Status + " not like", buffer.toString(), "status");
            return this;
        }
                
                public Criteria andStatusIn(List<String> values) {
        	
        	if(values.size() == 1){
        		return andStatusEqualTo(values.get(0));
        	}
        	else{
            	addCriterion(IClassDefineDAO.Status + " in", values, "status");
            	return this;
            }
        }
        public Criteria andStatusNotIn(List<String> values) {
        	if(values.size() == 1){
        		return andStatusNotEqualTo(values.get(0));
        	}
        	else{
            	addCriterion(IClassDefineDAO.Status + " not in", values, "status");
            	return this;
            }
        }
        
        public Criteria andStatusIn(String[] values) {
        	
        	if(values.length == 1){
        		return andStatusEqualTo(values[0]);
        	}
        	else{
            	addCriterion(IClassDefineDAO.Status + " in", Arrays.asList(values), "status");
            	return this;
            }
        }
        public Criteria andStatusNotIn(String[] values) {
        	if(values.length == 1){
        		return andStatusNotEqualTo(values[0]);
        	}
        	else{
            	addCriterion(IClassDefineDAO.Status + " not in", Arrays.asList(values), "status");
            	return this;
            }
        }
		
		public Criteria andStatusIn(BaseQueryBean subQueryBean,
				IDataAccessInterface<?, ?> dao) {
			addCriterion(IClassDefineDAO.Status + " in ", subQueryBean, dao);
			return this;
		}
		
		public Criteria andStatusNotIn(BaseQueryBean subQueryBean,
				IDataAccessInterface<?, ?> dao) {
			addCriterion(IClassDefineDAO.Status + " not in ", subQueryBean, dao);
			return this;
		}
        
                public Criteria andStatusBetween(String value1, String value2) {
            addCriterion(IClassDefineDAO.Status + " between", value1, value2, "status");
            return this;
        }
        
                public Criteria andStatusNotBetween(String value1, String value2) {
            addCriterion(IClassDefineDAO.Status + " not between", value1, value2, "status");
            return this;
        }
        
            	
    	    	
    	    	
    	        
                
        public Criteria andRemarksIsNull() {
            addCriterion(IClassDefineDAO.Remarks + " is null");
            return this;
        }
        public Criteria andRemarksIsNotNull() {
            addCriterion(IClassDefineDAO.Remarks + " is not null");
            return this;
        }
    
        public Criteria andRemarksIsNotEmpty() {        
            addCriterion(IClassDefineDAO.Remarks + " is not null AND " + IClassDefineDAO.Remarks + " <> ''");
            return this;
        }
    		
    	public Criteria andRemarksIsEmpty() {       
            addCriterion("(" + IClassDefineDAO.Remarks + " is null OR " + IClassDefineDAO.Remarks + " = '')");
            return this;
        }
        
                
                        
                        
                               public Criteria andRemarksEqualTo(String value) {
        				
            addCriterion(IClassDefineDAO.Remarks + " = ", value, "remarks");
            return this;
        }
        
        public Criteria andRemarksEqualToForeignKey(java.lang.String key) {
	    StringBuffer str = new StringBuffer(IClassDefineDAO.Remarks);
	    str.append(" = ").append(key);
            addForeignKeyCriterion(str.toString());
            return this;
        }
		
		public Criteria andRemarksEqualTo(BaseQueryBean subQueryBean,
				IDataAccessInterface<?, ?> dao) {
			addCriterion(IClassDefineDAO.Remarks + " = ", subQueryBean, dao);
			return this;
		}
                public Criteria andRemarksNotEqualTo(String value) {
        	        
            addCriterion(IClassDefineDAO.Remarks + " <>", value, "remarks");
            return this;
        }
               
        public Criteria andRemarksNotEqualToOrIsNull(String value) {
        	        
            addCriterion(IClassDefineDAO.Remarks + " is null OR " + IClassDefineDAO.Remarks + " <>", value, "remarks");
            return this;
        }
        
        public Criteria andRemarksNotEqualToForeignKey(java.lang.String key) {
	    StringBuffer str = new StringBuffer(IClassDefineDAO.Remarks);
	    str.append(" <> ").append(key);
            addForeignKeyCriterion(str.toString());
            return this;
        }
		
		public Criteria andRemarksNotEqualTo(BaseQueryBean subQueryBean,
				IDataAccessInterface<?, ?> dao) {
			addCriterion(IClassDefineDAO.Remarks + " <> ", subQueryBean, dao);
			return this;
		}
               public Criteria andRemarksGreaterThan(String value) {
        				
            addCriterion(IClassDefineDAO.Remarks + " >", value, "remarks");
            return this;
        }
        
        public Criteria andRemarksGreaterThanForeignKey(java.lang.String key) {
	    StringBuffer str = new StringBuffer(IClassDefineDAO.Remarks);
	    str.append(" > ").append(key);
            addForeignKeyCriterion(str.toString());
            return this;
        }
		
		public Criteria andRemarksGreaterThan(BaseQueryBean subQueryBean,
				IDataAccessInterface<?, ?> dao) {
			addCriterion(IClassDefineDAO.Remarks + " > ", subQueryBean, dao);
			return this;
		}
               public Criteria andRemarksGreaterThanOrEqualTo(String value) {
        				
            addCriterion(IClassDefineDAO.Remarks + " >=", value, "remarks");
            return this;
        }
        
        public Criteria andRemarksGreaterThanOrEqualToForeignKey(java.lang.String key) {
			StringBuffer str = new StringBuffer(IClassDefineDAO.Remarks);
			str.append(" >= ").append(key);
            addForeignKeyCriterion(str.toString());
            return this;
        }
		
		public Criteria andRemarksGreaterThanOrEqualTo(BaseQueryBean subQueryBean,
				IDataAccessInterface<?, ?> dao) {
			addCriterion(IClassDefineDAO.Remarks + " >= ", subQueryBean, dao);
			return this;
		}
        
                public Criteria andRemarksLessThan(String value) {
        				
            addCriterion(IClassDefineDAO.Remarks + " <", value, "remarks");
            return this;
        }
        
        public Criteria andRemarksLessThanForeignKey(java.lang.String key) {
			StringBuffer str = new StringBuffer(IClassDefineDAO.Remarks);
			str.append(" < ").append(key);
            addForeignKeyCriterion(str.toString());
            return this;
        }
		
		public Criteria andRemarksLessThan(BaseQueryBean subQueryBean,
				IDataAccessInterface<?, ?> dao) {
			addCriterion(IClassDefineDAO.Remarks + " < ", subQueryBean, dao);
			return this;
		}
        
                public Criteria andRemarksLessThanOrEqualTo(String value) {
        				
            addCriterion(IClassDefineDAO.Remarks + " <=", value, "remarks");
            return this;
        }
        
        public Criteria andRemarksLessThanOrEqualToForeignKey(java.lang.String key) {
			StringBuffer str = new StringBuffer(IClassDefineDAO.Remarks);
			str.append(" <= ").append(key);
            addForeignKeyCriterion(str.toString());
            return this;
        }
		
		public Criteria andRemarksLessThanOrEqualTo(BaseQueryBean subQueryBean,
				IDataAccessInterface<?, ?> dao) {
			addCriterion(IClassDefineDAO.Remarks + " <= ", subQueryBean, dao);
			return this;
		}
		
				
        public Criteria andRemarksLike(String value) {
        	StringBuffer buffer = new StringBuffer("%");
        	buffer.append(value);
        	buffer.append("%");
            addCriterion(IClassDefineDAO.Remarks + " like", buffer.toString(), "remarks");
            return this;
        }
        public Criteria andRemarksNotLike(String value) {
            StringBuffer buffer = new StringBuffer("%");
        	buffer.append(value);
        	buffer.append("%");
            addCriterion(IClassDefineDAO.Remarks + " not like", buffer.toString(), "remarks");
            return this;
        }
                
                public Criteria andRemarksIn(List<String> values) {
        	
        	if(values.size() == 1){
        		return andRemarksEqualTo(values.get(0));
        	}
        	else{
            	addCriterion(IClassDefineDAO.Remarks + " in", values, "remarks");
            	return this;
            }
        }
        public Criteria andRemarksNotIn(List<String> values) {
        	if(values.size() == 1){
        		return andRemarksNotEqualTo(values.get(0));
        	}
        	else{
            	addCriterion(IClassDefineDAO.Remarks + " not in", values, "remarks");
            	return this;
            }
        }
        
        public Criteria andRemarksIn(String[] values) {
        	
        	if(values.length == 1){
        		return andRemarksEqualTo(values[0]);
        	}
        	else{
            	addCriterion(IClassDefineDAO.Remarks + " in", Arrays.asList(values), "remarks");
            	return this;
            }
        }
        public Criteria andRemarksNotIn(String[] values) {
        	if(values.length == 1){
        		return andRemarksNotEqualTo(values[0]);
        	}
        	else{
            	addCriterion(IClassDefineDAO.Remarks + " not in", Arrays.asList(values), "remarks");
            	return this;
            }
        }
		
		public Criteria andRemarksIn(BaseQueryBean subQueryBean,
				IDataAccessInterface<?, ?> dao) {
			addCriterion(IClassDefineDAO.Remarks + " in ", subQueryBean, dao);
			return this;
		}
		
		public Criteria andRemarksNotIn(BaseQueryBean subQueryBean,
				IDataAccessInterface<?, ?> dao) {
			addCriterion(IClassDefineDAO.Remarks + " not in ", subQueryBean, dao);
			return this;
		}
        
                public Criteria andRemarksBetween(String value1, String value2) {
            addCriterion(IClassDefineDAO.Remarks + " between", value1, value2, "remarks");
            return this;
        }
        
                public Criteria andRemarksNotBetween(String value1, String value2) {
            addCriterion(IClassDefineDAO.Remarks + " not between", value1, value2, "remarks");
            return this;
        }
        
            	
    	    	
    	    	    	    	    	    	
                
                
        public Criteria andCampusNameIsNull() {
            addCriterion(IClassDefineDAO.CampusName + " is null");
            return this;
        }
        public Criteria andCampusNameIsNotNull() {
            addCriterion(IClassDefineDAO.CampusName + " is not null");
            return this;
        }
    
        public Criteria andCampusNameIsNotEmpty() {        
            addCriterion(IClassDefineDAO.CampusName + " is not null AND " + IClassDefineDAO.CampusName + " <> ''");
            return this;
        }
    		
    	public Criteria andCampusNameIsEmpty() {       
            addCriterion("(" + IClassDefineDAO.CampusName + " is null OR " + IClassDefineDAO.CampusName + " = '')");
            return this;
        }
        
                
                        
                        
                               public Criteria andCampusNameEqualTo(String value) {
        				
            addCriterion(IClassDefineDAO.CampusName + " = ", value, "campusName");
            return this;
        }
        
        public Criteria andCampusNameEqualToForeignKey(java.lang.String key) {
	    StringBuffer str = new StringBuffer(IClassDefineDAO.CampusName);
	    str.append(" = ").append(key);
            addForeignKeyCriterion(str.toString());
            return this;
        }
		
		public Criteria andCampusNameEqualTo(BaseQueryBean subQueryBean,
				IDataAccessInterface<?, ?> dao) {
			addCriterion(IClassDefineDAO.CampusName + " = ", subQueryBean, dao);
			return this;
		}
                public Criteria andCampusNameNotEqualTo(String value) {
        	        
            addCriterion(IClassDefineDAO.CampusName + " <>", value, "campusName");
            return this;
        }
               
        public Criteria andCampusNameNotEqualToOrIsNull(String value) {
        	        
            addCriterion(IClassDefineDAO.CampusName + " is null OR " + IClassDefineDAO.CampusName + " <>", value, "campusName");
            return this;
        }
        
        public Criteria andCampusNameNotEqualToForeignKey(java.lang.String key) {
	    StringBuffer str = new StringBuffer(IClassDefineDAO.CampusName);
	    str.append(" <> ").append(key);
            addForeignKeyCriterion(str.toString());
            return this;
        }
		
		public Criteria andCampusNameNotEqualTo(BaseQueryBean subQueryBean,
				IDataAccessInterface<?, ?> dao) {
			addCriterion(IClassDefineDAO.CampusName + " <> ", subQueryBean, dao);
			return this;
		}
               public Criteria andCampusNameGreaterThan(String value) {
        				
            addCriterion(IClassDefineDAO.CampusName + " >", value, "campusName");
            return this;
        }
        
        public Criteria andCampusNameGreaterThanForeignKey(java.lang.String key) {
	    StringBuffer str = new StringBuffer(IClassDefineDAO.CampusName);
	    str.append(" > ").append(key);
            addForeignKeyCriterion(str.toString());
            return this;
        }
		
		public Criteria andCampusNameGreaterThan(BaseQueryBean subQueryBean,
				IDataAccessInterface<?, ?> dao) {
			addCriterion(IClassDefineDAO.CampusName + " > ", subQueryBean, dao);
			return this;
		}
               public Criteria andCampusNameGreaterThanOrEqualTo(String value) {
        				
            addCriterion(IClassDefineDAO.CampusName + " >=", value, "campusName");
            return this;
        }
        
        public Criteria andCampusNameGreaterThanOrEqualToForeignKey(java.lang.String key) {
			StringBuffer str = new StringBuffer(IClassDefineDAO.CampusName);
			str.append(" >= ").append(key);
            addForeignKeyCriterion(str.toString());
            return this;
        }
		
		public Criteria andCampusNameGreaterThanOrEqualTo(BaseQueryBean subQueryBean,
				IDataAccessInterface<?, ?> dao) {
			addCriterion(IClassDefineDAO.CampusName + " >= ", subQueryBean, dao);
			return this;
		}
        
                public Criteria andCampusNameLessThan(String value) {
        				
            addCriterion(IClassDefineDAO.CampusName + " <", value, "campusName");
            return this;
        }
        
        public Criteria andCampusNameLessThanForeignKey(java.lang.String key) {
			StringBuffer str = new StringBuffer(IClassDefineDAO.CampusName);
			str.append(" < ").append(key);
            addForeignKeyCriterion(str.toString());
            return this;
        }
		
		public Criteria andCampusNameLessThan(BaseQueryBean subQueryBean,
				IDataAccessInterface<?, ?> dao) {
			addCriterion(IClassDefineDAO.CampusName + " < ", subQueryBean, dao);
			return this;
		}
        
                public Criteria andCampusNameLessThanOrEqualTo(String value) {
        				
            addCriterion(IClassDefineDAO.CampusName + " <=", value, "campusName");
            return this;
        }
        
        public Criteria andCampusNameLessThanOrEqualToForeignKey(java.lang.String key) {
			StringBuffer str = new StringBuffer(IClassDefineDAO.CampusName);
			str.append(" <= ").append(key);
            addForeignKeyCriterion(str.toString());
            return this;
        }
		
		public Criteria andCampusNameLessThanOrEqualTo(BaseQueryBean subQueryBean,
				IDataAccessInterface<?, ?> dao) {
			addCriterion(IClassDefineDAO.CampusName + " <= ", subQueryBean, dao);
			return this;
		}
		
				
        public Criteria andCampusNameLike(String value) {
        	StringBuffer buffer = new StringBuffer("%");
        	buffer.append(value);
        	buffer.append("%");
            addCriterion(IClassDefineDAO.CampusName + " like", buffer.toString(), "campusName");
            return this;
        }
        public Criteria andCampusNameNotLike(String value) {
            StringBuffer buffer = new StringBuffer("%");
        	buffer.append(value);
        	buffer.append("%");
            addCriterion(IClassDefineDAO.CampusName + " not like", buffer.toString(), "campusName");
            return this;
        }
                
                public Criteria andCampusNameIn(List<String> values) {
        	
        	if(values.size() == 1){
        		return andCampusNameEqualTo(values.get(0));
        	}
        	else{
            	addCriterion(IClassDefineDAO.CampusName + " in", values, "campusName");
            	return this;
            }
        }
        public Criteria andCampusNameNotIn(List<String> values) {
        	if(values.size() == 1){
        		return andCampusNameNotEqualTo(values.get(0));
        	}
        	else{
            	addCriterion(IClassDefineDAO.CampusName + " not in", values, "campusName");
            	return this;
            }
        }
        
        public Criteria andCampusNameIn(String[] values) {
        	
        	if(values.length == 1){
        		return andCampusNameEqualTo(values[0]);
        	}
        	else{
            	addCriterion(IClassDefineDAO.CampusName + " in", Arrays.asList(values), "campusName");
            	return this;
            }
        }
        public Criteria andCampusNameNotIn(String[] values) {
        	if(values.length == 1){
        		return andCampusNameNotEqualTo(values[0]);
        	}
        	else{
            	addCriterion(IClassDefineDAO.CampusName + " not in", Arrays.asList(values), "campusName");
            	return this;
            }
        }
		
		public Criteria andCampusNameIn(BaseQueryBean subQueryBean,
				IDataAccessInterface<?, ?> dao) {
			addCriterion(IClassDefineDAO.CampusName + " in ", subQueryBean, dao);
			return this;
		}
		
		public Criteria andCampusNameNotIn(BaseQueryBean subQueryBean,
				IDataAccessInterface<?, ?> dao) {
			addCriterion(IClassDefineDAO.CampusName + " not in ", subQueryBean, dao);
			return this;
		}
        
                public Criteria andCampusNameBetween(String value1, String value2) {
            addCriterion(IClassDefineDAO.CampusName + " between", value1, value2, "campusName");
            return this;
        }
        
                public Criteria andCampusNameNotBetween(String value1, String value2) {
            addCriterion(IClassDefineDAO.CampusName + " not between", value1, value2, "campusName");
            return this;
        }
        
            	
    	    	    	    	    	    	    	    	
                
                
        public Criteria andCourseNameIsNull() {
            addCriterion(IClassDefineDAO.CourseName + " is null");
            return this;
        }
        public Criteria andCourseNameIsNotNull() {
            addCriterion(IClassDefineDAO.CourseName + " is not null");
            return this;
        }
    
        public Criteria andCourseNameIsNotEmpty() {        
            addCriterion(IClassDefineDAO.CourseName + " is not null AND " + IClassDefineDAO.CourseName + " <> ''");
            return this;
        }
    		
    	public Criteria andCourseNameIsEmpty() {       
            addCriterion("(" + IClassDefineDAO.CourseName + " is null OR " + IClassDefineDAO.CourseName + " = '')");
            return this;
        }
        
                
                        
                        
                               public Criteria andCourseNameEqualTo(String value) {
        				
            addCriterion(IClassDefineDAO.CourseName + " = ", value, "courseName");
            return this;
        }
        
        public Criteria andCourseNameEqualToForeignKey(java.lang.String key) {
	    StringBuffer str = new StringBuffer(IClassDefineDAO.CourseName);
	    str.append(" = ").append(key);
            addForeignKeyCriterion(str.toString());
            return this;
        }
		
		public Criteria andCourseNameEqualTo(BaseQueryBean subQueryBean,
				IDataAccessInterface<?, ?> dao) {
			addCriterion(IClassDefineDAO.CourseName + " = ", subQueryBean, dao);
			return this;
		}
                public Criteria andCourseNameNotEqualTo(String value) {
        	        
            addCriterion(IClassDefineDAO.CourseName + " <>", value, "courseName");
            return this;
        }
               
        public Criteria andCourseNameNotEqualToOrIsNull(String value) {
        	        
            addCriterion(IClassDefineDAO.CourseName + " is null OR " + IClassDefineDAO.CourseName + " <>", value, "courseName");
            return this;
        }
        
        public Criteria andCourseNameNotEqualToForeignKey(java.lang.String key) {
	    StringBuffer str = new StringBuffer(IClassDefineDAO.CourseName);
	    str.append(" <> ").append(key);
            addForeignKeyCriterion(str.toString());
            return this;
        }
		
		public Criteria andCourseNameNotEqualTo(BaseQueryBean subQueryBean,
				IDataAccessInterface<?, ?> dao) {
			addCriterion(IClassDefineDAO.CourseName + " <> ", subQueryBean, dao);
			return this;
		}
               public Criteria andCourseNameGreaterThan(String value) {
        				
            addCriterion(IClassDefineDAO.CourseName + " >", value, "courseName");
            return this;
        }
        
        public Criteria andCourseNameGreaterThanForeignKey(java.lang.String key) {
	    StringBuffer str = new StringBuffer(IClassDefineDAO.CourseName);
	    str.append(" > ").append(key);
            addForeignKeyCriterion(str.toString());
            return this;
        }
		
		public Criteria andCourseNameGreaterThan(BaseQueryBean subQueryBean,
				IDataAccessInterface<?, ?> dao) {
			addCriterion(IClassDefineDAO.CourseName + " > ", subQueryBean, dao);
			return this;
		}
               public Criteria andCourseNameGreaterThanOrEqualTo(String value) {
        				
            addCriterion(IClassDefineDAO.CourseName + " >=", value, "courseName");
            return this;
        }
        
        public Criteria andCourseNameGreaterThanOrEqualToForeignKey(java.lang.String key) {
			StringBuffer str = new StringBuffer(IClassDefineDAO.CourseName);
			str.append(" >= ").append(key);
            addForeignKeyCriterion(str.toString());
            return this;
        }
		
		public Criteria andCourseNameGreaterThanOrEqualTo(BaseQueryBean subQueryBean,
				IDataAccessInterface<?, ?> dao) {
			addCriterion(IClassDefineDAO.CourseName + " >= ", subQueryBean, dao);
			return this;
		}
        
                public Criteria andCourseNameLessThan(String value) {
        				
            addCriterion(IClassDefineDAO.CourseName + " <", value, "courseName");
            return this;
        }
        
        public Criteria andCourseNameLessThanForeignKey(java.lang.String key) {
			StringBuffer str = new StringBuffer(IClassDefineDAO.CourseName);
			str.append(" < ").append(key);
            addForeignKeyCriterion(str.toString());
            return this;
        }
		
		public Criteria andCourseNameLessThan(BaseQueryBean subQueryBean,
				IDataAccessInterface<?, ?> dao) {
			addCriterion(IClassDefineDAO.CourseName + " < ", subQueryBean, dao);
			return this;
		}
        
                public Criteria andCourseNameLessThanOrEqualTo(String value) {
        				
            addCriterion(IClassDefineDAO.CourseName + " <=", value, "courseName");
            return this;
        }
        
        public Criteria andCourseNameLessThanOrEqualToForeignKey(java.lang.String key) {
			StringBuffer str = new StringBuffer(IClassDefineDAO.CourseName);
			str.append(" <= ").append(key);
            addForeignKeyCriterion(str.toString());
            return this;
        }
		
		public Criteria andCourseNameLessThanOrEqualTo(BaseQueryBean subQueryBean,
				IDataAccessInterface<?, ?> dao) {
			addCriterion(IClassDefineDAO.CourseName + " <= ", subQueryBean, dao);
			return this;
		}
		
				
        public Criteria andCourseNameLike(String value) {
        	StringBuffer buffer = new StringBuffer("%");
        	buffer.append(value);
        	buffer.append("%");
            addCriterion(IClassDefineDAO.CourseName + " like", buffer.toString(), "courseName");
            return this;
        }
        public Criteria andCourseNameNotLike(String value) {
            StringBuffer buffer = new StringBuffer("%");
        	buffer.append(value);
        	buffer.append("%");
            addCriterion(IClassDefineDAO.CourseName + " not like", buffer.toString(), "courseName");
            return this;
        }
                
                public Criteria andCourseNameIn(List<String> values) {
        	
        	if(values.size() == 1){
        		return andCourseNameEqualTo(values.get(0));
        	}
        	else{
            	addCriterion(IClassDefineDAO.CourseName + " in", values, "courseName");
            	return this;
            }
        }
        public Criteria andCourseNameNotIn(List<String> values) {
        	if(values.size() == 1){
        		return andCourseNameNotEqualTo(values.get(0));
        	}
        	else{
            	addCriterion(IClassDefineDAO.CourseName + " not in", values, "courseName");
            	return this;
            }
        }
        
        public Criteria andCourseNameIn(String[] values) {
        	
        	if(values.length == 1){
        		return andCourseNameEqualTo(values[0]);
        	}
        	else{
            	addCriterion(IClassDefineDAO.CourseName + " in", Arrays.asList(values), "courseName");
            	return this;
            }
        }
        public Criteria andCourseNameNotIn(String[] values) {
        	if(values.length == 1){
        		return andCourseNameNotEqualTo(values[0]);
        	}
        	else{
            	addCriterion(IClassDefineDAO.CourseName + " not in", Arrays.asList(values), "courseName");
            	return this;
            }
        }
		
		public Criteria andCourseNameIn(BaseQueryBean subQueryBean,
				IDataAccessInterface<?, ?> dao) {
			addCriterion(IClassDefineDAO.CourseName + " in ", subQueryBean, dao);
			return this;
		}
		
		public Criteria andCourseNameNotIn(BaseQueryBean subQueryBean,
				IDataAccessInterface<?, ?> dao) {
			addCriterion(IClassDefineDAO.CourseName + " not in ", subQueryBean, dao);
			return this;
		}
        
                public Criteria andCourseNameBetween(String value1, String value2) {
            addCriterion(IClassDefineDAO.CourseName + " between", value1, value2, "courseName");
            return this;
        }
        
                public Criteria andCourseNameNotBetween(String value1, String value2) {
            addCriterion(IClassDefineDAO.CourseName + " not between", value1, value2, "courseName");
            return this;
        }
        
            	
    	    	    	    	    	    	    	    	
                
                
        public Criteria andClassroomNameIsNull() {
            addCriterion(IClassDefineDAO.ClassroomName + " is null");
            return this;
        }
        public Criteria andClassroomNameIsNotNull() {
            addCriterion(IClassDefineDAO.ClassroomName + " is not null");
            return this;
        }
    
        public Criteria andClassroomNameIsNotEmpty() {        
            addCriterion(IClassDefineDAO.ClassroomName + " is not null AND " + IClassDefineDAO.ClassroomName + " <> ''");
            return this;
        }
    		
    	public Criteria andClassroomNameIsEmpty() {       
            addCriterion("(" + IClassDefineDAO.ClassroomName + " is null OR " + IClassDefineDAO.ClassroomName + " = '')");
            return this;
        }
        
                
                        
                        
                               public Criteria andClassroomNameEqualTo(String value) {
        				
            addCriterion(IClassDefineDAO.ClassroomName + " = ", value, "classroomName");
            return this;
        }
        
        public Criteria andClassroomNameEqualToForeignKey(java.lang.String key) {
	    StringBuffer str = new StringBuffer(IClassDefineDAO.ClassroomName);
	    str.append(" = ").append(key);
            addForeignKeyCriterion(str.toString());
            return this;
        }
		
		public Criteria andClassroomNameEqualTo(BaseQueryBean subQueryBean,
				IDataAccessInterface<?, ?> dao) {
			addCriterion(IClassDefineDAO.ClassroomName + " = ", subQueryBean, dao);
			return this;
		}
                public Criteria andClassroomNameNotEqualTo(String value) {
        	        
            addCriterion(IClassDefineDAO.ClassroomName + " <>", value, "classroomName");
            return this;
        }
               
        public Criteria andClassroomNameNotEqualToOrIsNull(String value) {
        	        
            addCriterion(IClassDefineDAO.ClassroomName + " is null OR " + IClassDefineDAO.ClassroomName + " <>", value, "classroomName");
            return this;
        }
        
        public Criteria andClassroomNameNotEqualToForeignKey(java.lang.String key) {
	    StringBuffer str = new StringBuffer(IClassDefineDAO.ClassroomName);
	    str.append(" <> ").append(key);
            addForeignKeyCriterion(str.toString());
            return this;
        }
		
		public Criteria andClassroomNameNotEqualTo(BaseQueryBean subQueryBean,
				IDataAccessInterface<?, ?> dao) {
			addCriterion(IClassDefineDAO.ClassroomName + " <> ", subQueryBean, dao);
			return this;
		}
               public Criteria andClassroomNameGreaterThan(String value) {
        				
            addCriterion(IClassDefineDAO.ClassroomName + " >", value, "classroomName");
            return this;
        }
        
        public Criteria andClassroomNameGreaterThanForeignKey(java.lang.String key) {
	    StringBuffer str = new StringBuffer(IClassDefineDAO.ClassroomName);
	    str.append(" > ").append(key);
            addForeignKeyCriterion(str.toString());
            return this;
        }
		
		public Criteria andClassroomNameGreaterThan(BaseQueryBean subQueryBean,
				IDataAccessInterface<?, ?> dao) {
			addCriterion(IClassDefineDAO.ClassroomName + " > ", subQueryBean, dao);
			return this;
		}
               public Criteria andClassroomNameGreaterThanOrEqualTo(String value) {
        				
            addCriterion(IClassDefineDAO.ClassroomName + " >=", value, "classroomName");
            return this;
        }
        
        public Criteria andClassroomNameGreaterThanOrEqualToForeignKey(java.lang.String key) {
			StringBuffer str = new StringBuffer(IClassDefineDAO.ClassroomName);
			str.append(" >= ").append(key);
            addForeignKeyCriterion(str.toString());
            return this;
        }
		
		public Criteria andClassroomNameGreaterThanOrEqualTo(BaseQueryBean subQueryBean,
				IDataAccessInterface<?, ?> dao) {
			addCriterion(IClassDefineDAO.ClassroomName + " >= ", subQueryBean, dao);
			return this;
		}
        
                public Criteria andClassroomNameLessThan(String value) {
        				
            addCriterion(IClassDefineDAO.ClassroomName + " <", value, "classroomName");
            return this;
        }
        
        public Criteria andClassroomNameLessThanForeignKey(java.lang.String key) {
			StringBuffer str = new StringBuffer(IClassDefineDAO.ClassroomName);
			str.append(" < ").append(key);
            addForeignKeyCriterion(str.toString());
            return this;
        }
		
		public Criteria andClassroomNameLessThan(BaseQueryBean subQueryBean,
				IDataAccessInterface<?, ?> dao) {
			addCriterion(IClassDefineDAO.ClassroomName + " < ", subQueryBean, dao);
			return this;
		}
        
                public Criteria andClassroomNameLessThanOrEqualTo(String value) {
        				
            addCriterion(IClassDefineDAO.ClassroomName + " <=", value, "classroomName");
            return this;
        }
        
        public Criteria andClassroomNameLessThanOrEqualToForeignKey(java.lang.String key) {
			StringBuffer str = new StringBuffer(IClassDefineDAO.ClassroomName);
			str.append(" <= ").append(key);
            addForeignKeyCriterion(str.toString());
            return this;
        }
		
		public Criteria andClassroomNameLessThanOrEqualTo(BaseQueryBean subQueryBean,
				IDataAccessInterface<?, ?> dao) {
			addCriterion(IClassDefineDAO.ClassroomName + " <= ", subQueryBean, dao);
			return this;
		}
		
				
        public Criteria andClassroomNameLike(String value) {
        	StringBuffer buffer = new StringBuffer("%");
        	buffer.append(value);
        	buffer.append("%");
            addCriterion(IClassDefineDAO.ClassroomName + " like", buffer.toString(), "classroomName");
            return this;
        }
        public Criteria andClassroomNameNotLike(String value) {
            StringBuffer buffer = new StringBuffer("%");
        	buffer.append(value);
        	buffer.append("%");
            addCriterion(IClassDefineDAO.ClassroomName + " not like", buffer.toString(), "classroomName");
            return this;
        }
                
                public Criteria andClassroomNameIn(List<String> values) {
        	
        	if(values.size() == 1){
        		return andClassroomNameEqualTo(values.get(0));
        	}
        	else{
            	addCriterion(IClassDefineDAO.ClassroomName + " in", values, "classroomName");
            	return this;
            }
        }
        public Criteria andClassroomNameNotIn(List<String> values) {
        	if(values.size() == 1){
        		return andClassroomNameNotEqualTo(values.get(0));
        	}
        	else{
            	addCriterion(IClassDefineDAO.ClassroomName + " not in", values, "classroomName");
            	return this;
            }
        }
        
        public Criteria andClassroomNameIn(String[] values) {
        	
        	if(values.length == 1){
        		return andClassroomNameEqualTo(values[0]);
        	}
        	else{
            	addCriterion(IClassDefineDAO.ClassroomName + " in", Arrays.asList(values), "classroomName");
            	return this;
            }
        }
        public Criteria andClassroomNameNotIn(String[] values) {
        	if(values.length == 1){
        		return andClassroomNameNotEqualTo(values[0]);
        	}
        	else{
            	addCriterion(IClassDefineDAO.ClassroomName + " not in", Arrays.asList(values), "classroomName");
            	return this;
            }
        }
		
		public Criteria andClassroomNameIn(BaseQueryBean subQueryBean,
				IDataAccessInterface<?, ?> dao) {
			addCriterion(IClassDefineDAO.ClassroomName + " in ", subQueryBean, dao);
			return this;
		}
		
		public Criteria andClassroomNameNotIn(BaseQueryBean subQueryBean,
				IDataAccessInterface<?, ?> dao) {
			addCriterion(IClassDefineDAO.ClassroomName + " not in ", subQueryBean, dao);
			return this;
		}
        
                public Criteria andClassroomNameBetween(String value1, String value2) {
            addCriterion(IClassDefineDAO.ClassroomName + " between", value1, value2, "classroomName");
            return this;
        }
        
                public Criteria andClassroomNameNotBetween(String value1, String value2) {
            addCriterion(IClassDefineDAO.ClassroomName + " not between", value1, value2, "classroomName");
            return this;
        }
        
            	
    	    	    	        
        
    }
	
    
}